Saturday, January 20, 2018

Sometime you need to get a non domain member to use the internal WSUS server, here is the info on how to do just that.

http://msmvps.com/blogs/athif/archive/2005/09/14/Manually_Configure_WUA.aspx

WSUS: Script to Manually Configure Automatic Update Client (WUA) for WSUS in a workgroup environment

 

***This is a sample.
***Edit the Code based on your options & requirement.
***See NOTES and MORE INFORMATION section below for details.

 

1. Simple copy and paste the code below into a text file and name it WSUS.reg

 

============ START Script Code===========
Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"WUServer"="
http://YOUR-WSUS-SERVER"
"WUStatusServer"="
http://YOUR-WSUS-SERVER"
"TargetGroupEnabled"=dword:00000001
"TargetGroup"="IT Department"
"ElevateNonAdmins"=dword:00000000

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAutoUpdate"=dword:00000000
"AUOptions"=dword:00000004
"ScheduledInstallDay"=dword:00000000
"ScheduledInstallTime"=dword:0000000a
"NoAutoRebootWithLoggedOnUsers"=dword:00000001
"AutoInstallMinorUpdates"=dword:00000001
"RebootRelaunchTimeoutEnabled"=dword:00000001
"RebootRelaunchTimeout"=dword:0000003c
"RescheduleWaitTimeEnabled"=dword:00000001
"RescheduleWaitTime"=dword:0000000f
"DetectionFrequencyEnabled"=dword:00000001
"RebootWarningTimeoutEnabled"=dword:00000001
"RebootWarningTimeout"=dword:0000001e
"UseWUServer"=dword:00000001
"NoAUShutdownOption"=dword:00000000
"NoAUAsDefaultShutdownOption"=dword:00000000
============ END Script Code===========

 

2. WSUS.reg is ready. Now cut and paste the code below into a text file and name it WSUS.bat

 

============ START Script Code===========
@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 http://msmvps.com/Athif
REM INSTRUCTIONS:
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
Pause
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
Pause
============ END Script Code===========

 

3. At the end of this procedure, You will have 2 scripts -

 

  • WSUS.reg: This script contains all the WUA settings.
  • WSUS.bat: This script will import WUA settings from WSUS.reg file.

 

Place both the files in same location (single folder) and double-click WSUS.bat to configure Windows Update Agent (WUA) in a workgroup environment.