; (c) Microsoft Corporation 1997-2003
;
;
; Name:        AURegConfig.cmd
; Version:     1.0
;
;本檔案包含用來遠端設定 AU 用戶端的範例命令。使用此檔案之前，
;請先將下方指定的命令修改成您需要的參數。在每個命令中，
;會使用引號括住每個參數的簡短描述。請勿在指定參數時，加入任何引號。
;This file contains sample commands for configuring the AU client
;remotely. Modify the commands specified below with the desired  
;parameters before using this file. A brief description of each parameter
;is included in quotes in each command. Do not include the quotes when specifying
;any parameters. 
;
;
; Release History
; 0001	-	Original	June 30, 2003

set TARGET=\\%1\

:Configures appropriate SUS server to use
REG ADD %TARGET%HKLM\software\policies\microsoft\windows\WindowsUpdate /V WUServer /T REG_SZ /D http://"enter SUS servername" /F

:Configures appropriate IIS server for reporting
REG ADD %TARGET%HKLM\software\policies\microsoft\windows\WindowsUpdate /V WUStatusServer /T REG_SZ /D http://"enter SUS servername" /F

:Enables/Disables Auto Updates
REG ADD %TARGET%HKLM\software\policies\microsoft\windows\WindowsUpdate\AU /V NoAutoUpdate /T REG_DWORD /D "set to "0" to enable, "1" to disable" /F

:Configures AU client to prompt or not prompt for installation of updates
REG ADD %TARGET%HKLM\software\policies\microsoft\windows\WindowsUpdate\AU /V AUOptions /T REG_DWORD /D "set to "4" for automatic installation" /F

:Configures the time when updates will be installed
REG ADD %TARGET%HKLM\software\policies\microsoft\windows\WindowsUpdate\AU /V ScheduledInstallTime /T REG_DWORD /D "time of day in 24-hour format (0-23)" /F

:Configures AU client to use SUS server or Windows Update server
REG ADD %TARGET%HKLM\software\policies\microsoft\windows\WindowsUpdate\AU /V UseWUServer /T REG_DWORD /D "Set to "0" for Windows Update, set to "1" to use SUS server specified above" /F

