WSUS activation script

Windows Registry Editor Version 5.00
"TargetGroup"="IT Department"
@echo off
Echo Save the batch file as "WSUS.bat". This batch file will do the following:
Echo 1.    Stops the Automatic Update Service (wuauserv) service.
Echo 2.    Imports WUA settings for workstations in workgroup to detect/download/install updates from WSUS.
Echo 3.    Starts the Automatic Update Service (wuauserv) service.
Echo 4.    Force update detection.
Echo 5.    More information on
REM Place both the files (WSUS.reg and WSUS.bat) in same location (single folder)
REM Double-click WSUS.bat to import WSUS.reg which contains Windows Update Agent (WUA) settings.
REM for WUA in a workgroup environment. In this sample, WSUS.reg and WSUS.bat
REM are placed in 'c:'.
REM Author:- Mohammed Athif Khaleel :- Date April 30, 2006
Net Stop "wuauserv"
Echo Importing WSUS.reg
%windir%Regedit.exe /s C:WSUS.reg
Echo WSUS.reg imported succesfully
Net Start "wuauserv"
Echo Forcing update detection
wuauclt /detectnow

Leave a Reply

Your email address will not be published. Required fields are marked *