+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
Windows Thread, Script to force install all Windows Update/WSUS in Technical; Sorry if you've seen this before, but I've certainly seen the question unanswered on here a few times. I've found ...
  1. #1
    eean's Avatar
    Join Date
    May 2006
    Location
    Kuala Lumpur
    Posts
    555
    Thank Post
    64
    Thanked 52 Times in 37 Posts
    Rep Power
    29

    Script to force install all Windows Update/WSUS

    Sorry if you've seen this before, but I've certainly seen the question unanswered on here a few times.
    I've found a script that will automatically download and install updates from Windows update or internal WSUS. Great for new installs!

    I edited it slightly so that it keeps restarting and running until all the updates are installed and once they are installed it will intiate the next part of our build process.
    The original version is here:
    http://www.wsus.info/forums/index.ph...opic=7298&st=0

  2. 3 Thanks to eean:

    dyoung5 (14th May 2008), GrumbleDook (8th November 2008), ngreenwood (11th August 2009)

  3. #2

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    8,941
    Thank Post
    232
    Thanked 1,510 Times in 1,206 Posts
    Rep Power
    328

    Re: Script to force install all Windows Update/WSUS

    When it comes to network domains I always use WSUS. It makes a lot of sense, otherwise you'll be downloading the same Windows updates over the web multiple times. It's still relatively time consuming.

    For standalone or offline installs, I have downloaded redistributable versions of Windows XP critical and optional updates (including Media Player 11, IE7, Remote Desktop 6, .NET Framework 1.1 + updates, .NET Framework 2.0 and .NET Framework 3.0) since XP SP2. I then created a batch file which will quietly install all updates one by one. Most are easy, although some required some googling as they use different switches.

    It took me a while to create, but no doubt saves me a lot of time patching existing machines or new machines. Of course when XP SP3 arrives, I would create a slipstream disc, then create a new pack post SP3 updates.

  4. #3
    eean's Avatar
    Join Date
    May 2006
    Location
    Kuala Lumpur
    Posts
    555
    Thank Post
    64
    Thanked 52 Times in 37 Posts
    Rep Power
    29

    Re: Script to force install all Windows Update/WSUS

    This works with WSUS (or windows update) - all it does is automate the existing Windows Update client. It is not a collection of updates downloaded. It works with WSUS or WU makingn it 100% up to date.

    The problem we had was that after XP had installed, machines would start downloading updates and then sit there until the designated install time or until I came along and selected 'Install Updates and Shutdown'. As some updates are dependant on other updates, you might need to do this 3 times.
    Now, this script runs as part of our zero-admin setup. It forces the download of updates from WSUS and installs them straight away and restarts the computer for you. If you have automated the script, it can then run again, untill the computer is fully up to date. Not rocket science, I know, but something that can't be done in windows and something I've been looking for a script for for ages.

  5. #4

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    8,941
    Thank Post
    232
    Thanked 1,510 Times in 1,206 Posts
    Rep Power
    328

    Re: Script to force install all Windows Update/WSUS

    I understand what you're getting at, but within WSUS you can specify 'deadline' dates for updates, so if a client hasn't completed updating and rebooting, it will visually display a 3 or 4 minute countdown sequence to the user.

    Users can then save their work and close any open applications, then reboot. I've never really had to enforce this however as WSUS installs updates quickly in my experience.

  6. #5

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    48

    Re: Script to force install all Windows Update/WSUS

    Thanks eean, will have a look tomorrow
    Would be useful for new builds

  7. #6

    Join Date
    Feb 2008
    Location
    California
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Script to Force Install of Windows Updates...

    Quote Originally Posted by eean View Post
    Sorry if you've seen this before, but I've certainly seen the question unanswered on here a few times.
    I've found a script that will automatically download and install updates from Windows update or internal WSUS. Great for new installs!

    I edited it slightly so that it keeps restarting and running until all the updates are installed and once they are installed it will intiate the next part of our build process.
    The original version is here:
    http://www.wsus.info/forums/index.ph...opic=7298&st=0
    I see the original script, but I don't see your "edited" version.

  8. #7
    eean's Avatar
    Join Date
    May 2006
    Location
    Kuala Lumpur
    Posts
    555
    Thank Post
    64
    Thanked 52 Times in 37 Posts
    Rep Power
    29
    It's not on that forum but I can post it if you like. It's rather crude and badly edited, with file names etc.. hard coded in, but you're welcome to it if you want.

  9. #8

    Join Date
    Feb 2008
    Location
    California
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Script to force install all Windows Update/WSUS

    Quote Originally Posted by eean View Post
    It's not on that forum but I can post it if you like. It's rather crude and badly edited, with file names etc.. hard coded in, but you're welcome to it if you want.
    Sure, if you don't mind. I'm at rene@w2cs.com. It's the looping code I'm trying to work out --which you have indicated you've solved.

  10. #9
    Ryan's Avatar
    Join Date
    Jan 2008
    Location
    Scotland
    Posts
    537
    Thank Post
    12
    Thanked 16 Times in 15 Posts
    Blog Entries
    1
    Rep Power
    28
    *shamelessly resurrects old thread*

    I have an issue with one or two machines not picking up updates from WSUS. They were existing machines that were reformatted.

    Will this script sort that, or are there other things is should so to ensure they appear in WSUS Admin and get updates properly? thx

  11. #10
    eean's Avatar
    Join Date
    May 2006
    Location
    Kuala Lumpur
    Posts
    555
    Thank Post
    64
    Thanked 52 Times in 37 Posts
    Rep Power
    29
    Probably not. The script doesn't do anything other than kick windows into running the wupdate software and monitors what the windows software does.
    I assume you've tried wuauclt /detectnow
    I sometimes (~10% of the time) have trouble with the script not running on new installs. The reason is that the wsus settings haven't applied properly because group policy hasn't refreshed correctly, even though I do gpupdate /force /boot as part of my build process.
    A running gpupdate a second time and reboot fixes it straight away, however.

    Next time you have a problem computer take a look in the registry at:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Win dows\WindowsUpdate\
    If the settings aren't there that may be the problem.

    Have you looked at c:\windows\windowsupdate.log
    That may give some clues too.

  12. #11

    Join Date
    Nov 2008
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I too am looking for a way to automate the update-reboot-update again sequence. Could you post a copy of your script or email me at grant.emsley@gmail.com so I can see how you did it?

    Thanks

  13. #12
    eean's Avatar
    Join Date
    May 2006
    Location
    Kuala Lumpur
    Posts
    555
    Thank Post
    64
    Thanked 52 Times in 37 Posts
    Rep Power
    29
    I would but, unfortunately, I have left the place where I was working when I wrote it and for some reason, I didn't get a copy. I'm in another country now but I might go back at xmas and retrieve my hours of labour!

  14. #13

    Join Date
    Aug 2009
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    thanks so much for useful info
    script install

  15. #14

    Join Date
    Dec 2009
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by Michael View Post
    When it comes to network domains I always use WSUS. It makes a lot of sense, otherwise you'll be downloading the same Windows updates over the web multiple times. It's still relatively time consuming.

    For standalone or offline installs, I have downloaded redistributable versions of Windows XP critical and optional updates (including Media Player 11, IE7, Remote Desktop 6, .NET Framework 1.1 + updates, .NET Framework 2.0 and .NET Framework 3.0) since XP SP2. I then created a batch file which will quietly install all updates one by one. Most are easy, although some required some googling as they use different switches.

    It took me a while to create, but no doubt saves me a lot of time patching existing machines or new machines. Of course when XP SP3 arrives, I would create a slipstream disc, then create a new pack post SP3 updates.
    Hi,

    I'm looking for a script to do exactly what you have described here!

    Is there any chance you got it to work with SP3 updates?

  16. #15

    Join Date
    Apr 2010
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    WuInstall /download

    You can try to do this in a command line script with WuInstall, with the /download option.

    Usually puts the downloads into the Windows\SoftwareDistribution\Download directory.

    From there, you can copy them on every new machine and install them, for example with wuInstall /install.

    Maybe in a future version it will also be possible to specify a certain download directory.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 13
    Last Post: 8th November 2007, 02:53 PM
  2. Replies: 4
    Last Post: 12th July 2007, 08:11 PM
  3. Replies: 11
    Last Post: 20th October 2006, 04:14 PM
  4. Replies: 5
    Last Post: 16th October 2006, 10:02 PM
  5. Force Teachers to update laptops
    By eejit in forum Windows
    Replies: 18
    Last Post: 13th July 2006, 06:03 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •