Google

Wednesday, October 11, 2006

How to force update to SUS Server

Simple copy and paste the code below into a text file and name it AUForceUpdate.cmd

====================================================
@echo off
Echo This batch file will Force the Update Detection from the AU client by:
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)

Pause
@echo on
net stop wuauserv
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v LastWaitTimeout /f
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v DetectionStartTime /f
Reg Delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v NextDetectionTime /f
net start wuauserv

@echo off
Echo This AU client will now check for the Updates on the Local SUS Server.
Echo After 10-20 mts Have a look at C:\Window\Windows update.log
Echo For any errors; feel free to post on the forum & I will try to help out.
Pause
====================================================

Or

During normal operations, the Automatic Update client will check-in to the SUS Server every 17 to 22 hours to detect approved updates. It is possible to force the detection process.

Steps
1 Stop the "Automatic Updates" Service
2 Check that the "AUState" registry value, located at:
HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Updateis set to "2"
3 Delete the "LastWaitTimeout" registry value, located at:
HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update4 Start the "Automatic Updates" Service.

The Automatic Update client will begin the update detection process in approximately 10 minutes.

If an admin-priv user is logged on they will be presented with the option to install any updates that downloaded, otherwise the computer will wait for the next scheduled install time.





0 Comments:

Post a Comment

<< Home