Search This Blog

Monday, August 3, 2009

Adding workgroup computer into WSUS server

Domain Computer can be added into WSUS console by using Group Policy. But how about workgroup computer !

You can add workgroup computer into WSUS console by using registry.
I have created two script to simplify your tasks.

1. File: wsus.bat

@echo off
::
Pause
net stop "wuauserv"
Echo importing wsus.reg
%windir%\regedit.exe /s c:\wsus.reg
echo wsus.reg imported successfully
net start "wuauserv"
echo forcing update detection
wuauclt /detectnow
pause



Note: Stop the Windows Update Service, execute wsus.reg and start Windows Update Service. Perform manual detection by using the command wuauclt /detectnow

2. File:wsus.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"WUServer"="http://wsussvr01"
"WUStatusServer"="http://wsussvr01"

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAutoUpdate"=dword:00000000
"AUOptions"=dword:00000004
"ScheduledInstallDay"=dword:00000000
"ScheduledInstallTime"=dword:0000000d
"UseWUServer"=dword:00000001
"NoAutoRebootWithLoggedOnUsers"=dword:00000001


Note:-
a) WUServer and WUStatusServer - specify your WSUS server using the following format http://wsus server name

b) Value: NoAutoUpdate
•0 - Enable Automatic Updates (Default)
•1 - Disable Automatic Updates

c) Value: AUOptions
•2 - Notify for download and notify for install
•3 - Auto download and notify for install
•4 - Auto download and schedule the install

d) Value: ScheduledInstallDay
•0 - Install every day
•1 to 7 - Install on specific day of the week from Sunday (1) to Saturday (7).

e) Value: ScheduledInstallTime
•0 to 23 - Install time of day in 24-hour format

f) UseWUServer - Enabled Automatic Update.

g) NoAutoRebootWithLoggedOnUsers -NoAutoRebootWithLoggedOnUsers is enabled which Specifies that to complete a scheduled installation, Automatic Updates will wait for the computer to be restarted by any user who is logged on, instead of causing the computer to restart automatically in 5 minutes to complete the installation.

Note: Copy both files into C:\ drive and run wsus.bat

For more detail, please refer to

http://technet.microsoft.com/en-us/library/cc708449(WS.10).aspx