WSUS push out all updates fastest way
WSUS push out all updates fastest way
Author
Discussion

shocker-z

Original Poster:

554 posts

249 months

Friday 26th January 2007
quotequote all
Has anyone come across a really good and fast way of using a WSUS server and getting all updates quickly to a new machine?

I've set up and all working but we do a few new builds a week and could do with a very quick solution to get all the updates.

Also has anyone come across a simple approval script?

Im running the WSUS on windows 2k advanced server


Regards
Liam

agent006

12,058 posts

295 months

Friday 26th January 2007
quotequote all
batch file said:
@echo off
Echo This batch file will Force the Update Detection from the AU client:
Echo 1. Stops the Automatic Updates Service (wuauserv)
Echo 2. Deletes the LastWaitTimeout registry key (if it exists)
Echo 3. Deletes the DetectionStartTime registry key (if it exists)
Echo 4. Deletes the NextDetectionTime registry key (if it exists)
Echo 5. Restart the Automatic Updates Service (wuauserv)
Echo 6. Force the detection
Pause
@echo on
net stop wuauserv
REG DELETE "HKLMSoftwareMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update" /v LastWaitTimeout /f
REG DELETE "HKLMSoftwareMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update" /v DetectionStartTime /f
Reg Delete "HKLMSoftwareMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update" /v NextDetectionTime /f
net start wuauserv
wuauclt /detectnow
@echo off
Echo This AU client will now check for the Updates on the Local WSUS Server.
Pause


Should force a client to recheck for updates.

neil_cardiff

17,113 posts

295 months

Friday 26th January 2007
quotequote all
agent006 said:
batch file said:
@echo off
Echo This batch file will Force the Update Detection from the AU client:
Echo 1. Stops the Automatic Updates Service (wuauserv)
Echo 2. Deletes the LastWaitTimeout registry key (if it exists)
Echo 3. Deletes the DetectionStartTime registry key (if it exists)
Echo 4. Deletes the NextDetectionTime registry key (if it exists)
Echo 5. Restart the Automatic Updates Service (wuauserv)
Echo 6. Force the detection
Pause
@echo on
net stop wuauserv
REG DELETE "HKLMSoftwareMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update" /v LastWaitTimeout /f
REG DELETE "HKLMSoftwareMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update" /v DetectionStartTime /f
Reg Delete "HKLMSoftwareMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update" /v NextDetectionTime /f
net start wuauserv
wuauclt /detectnow
@echo off
Echo This AU client will now check for the Updates on the Local WSUS Server.
Pause


Should force a client to recheck for updates.

Cor thats neat, I'll have play with that thumbup

shocker-z

Original Poster:

554 posts

249 months

Saturday 27th January 2007
quotequote all
Nice one mate will give that a blast might add a runonce registry key too so then when PC restarts it will check for updates again

then we just update untill it says restart which is just about every update lol



Thanks mate

Liam

agent006

12,058 posts

295 months

Sunday 28th January 2007
quotequote all
I find that the shceduled update setting is usually quite reliable for ongoing updates, can be set through group policy along with machine group name. I only use the script for one offs.