Giter VIP home page Giter VIP logo

Comments (11)

ader1990 avatar ader1990 commented on September 28, 2024

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.

Parth6288 avatar Parth6288 commented on September 28, 2024

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.

Parth6288 avatar Parth6288 commented on September 28, 2024

Attached is the error that I get for Windows 2012 STD
2012std

from windows-imaging-tools.

Parth6288 avatar Parth6288 commented on September 28, 2024

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.

ader1990 avatar ader1990 commented on September 28, 2024

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.

Parth6288 avatar Parth6288 commented on September 28, 2024

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.

Parth6288 avatar Parth6288 commented on September 28, 2024

Hi @ader1990 , Please advice if windowsupdateCli is now working with WSUS or not.

from windows-imaging-tools.

ader1990 avatar ader1990 commented on September 28, 2024

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.

Parth6288 avatar Parth6288 commented on September 28, 2024

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.

ader1990 avatar ader1990 commented on September 28, 2024

@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.

Parth6288 avatar Parth6288 commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.