Comments (11)
Hello,
I have a question: when and how do you set the wsus server uri? This is important, because if you set it after the logon script has started, the windows updates install will fail.
Thank you.
from windows-imaging-tools.
Hi,
I am setting it up in the logon script itself just before unzipping the PSWindowsupdate module. Below is the code that I am using the set the uri.
Set up the registry values to WSUS server
$WindowsUpdateRegKey = "HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU"
$WindowsUpdateRootRegKey = "HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\"
$WSUSServer = "http://mywsusserveruri/"
$StatServer = "http://mywsusserveruri/"
$Enabled = 1
Test if the Registry Key doesn't exist already
if(-not (Test-Path $WindowsUpdateRegKey))
{
# Create the WindowsUpdate\AU key, since it doesn't exist already
# The -Force parameter will create any non-existing parent keys recursively
New-Item -Path $WindowsUpdateRegKey -Force
}
Enable an Intranet-specific WSUS server
Set-ItemProperty -Path $WindowsUpdateRegKey -Name UseWUServer -Value $Enabled -Type DWord
Specify the WSUS server
Set-ItemProperty -Path $WindowsUpdateRootRegKey -Name WUServer -Value $WSUSServer -Type String
Specify the Statistics server
Set-ItemProperty -Path $WindowsUpdateRootRegKey -Name WUStatusServer -Value $StatServer -Type String
from windows-imaging-tools.
Attached is the error that I get for Windows 2012 STD
from windows-imaging-tools.
Hi,
I tried using the windowsupdateCLI module for Windows Update however still unable to get it working. below is the link to my logon.ps1 file.
http://pastebin.com/Ahp8vCLM
Please advice if i am missing anything.
Thanks.
from windows-imaging-tools.
For the moment, the windowsupdatecli module is not compatible with a wsus server. We are working on it to offer support for wsus.
from windows-imaging-tools.
Thanks, Adrian. I was able to use the script for one of my test VM to install updates through wsus using this module. However it does not work with the logon script. Appreciate if you can please comment once it is fixed.
from windows-imaging-tools.
Hi @ader1990 , Please advice if windowsupdateCli is now working with WSUS or not.
from windows-imaging-tools.
Hello @Parth6288 ,
You can try changing this value for the windowsupdatecli to see if it works in your environment: https://github.com/ader1990/WindowsUpdateCLI/blob/master/WindowsUpdates/WindowsUpdates.psm1#L19
In your case, it should be either 0 or 1. More information you can find here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa387280(v=vs.85).aspx
Let me know if this works for you.
Thanks, Adrian Vladu
from windows-imaging-tools.
thanks @ader1990 , It seems to be working now with Windows 2012 STD and 2008 R2. It is however taking a lot of time to install the updates( around 6-7 hours in 2012 STD and more than 10 hours in 2008 R2). Is this how it is with Windows update as well or could be with my environment. I am doing multiple test in our environment for this.
from windows-imaging-tools.
@Parth6288 did it work with a 0 or 1? If it is possible, can you do a PR with the code that worked for you?
Thanks.
from windows-imaging-tools.
Hi @ader1990 it worked with value 1. I have created a pull request with the modified code. Thanks for all the help in getting this resolved. I will try creating the actual image once December month patches are released. :)
from windows-imaging-tools.
Related Issues (20)
- The image generated with is not working in MAAS: 3.1.0 HOT 9
- Windows 11 doesn't work on Openstack with Q35 VMs HOT 1
- Windows 10 Pro disk and cpu scalability HOT 9
- Windows 10 super slow I/O HOT 3
- Use correct message type for ICMPv6 echo request HOT 1
- Format of outputted image does not correspond format specified in config
- Not running provided custom scripts HOT 6
- Cannot provide absolute path for UnattendTemplate HOT 1
- Windows 10 Desktop ISO Issue HOT 2
- Windows 10 Pro Hostname Override HOT 2
- Windows .raw image is too large (30GB) HOT 3
- Drivers error while running Examples/create-windows-online-cloud-image.ps1
- Driver error while running Examples\create-windows-online-cloud-image.ps1 HOT 3
- Create windows image error RegularExpressions
- Impossible to convert vhdx file in raw format during create-windows-online-cloud-image.ps1 process HOT 6
- Option extra_features cannot accept multiple features
- Unable to install drivers HOT 4
- TMP/TEMP env variable breaks ini.psm1 with non-ASCII usernames
- Cloudbase-init.msi fails with non-ASCII groups names HOT 2
- ".ctor" file not found! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-imaging-tools.