Windows WSUS Client registry configuration script
Windows WSUS Client registry configuration script 1, registry command Reg detailed explanation.
Use reg /? View the Windows command help.
Reg add command
Second, WSUS client registry configuration. Reg add HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ windows\ WindowsUpdate / v WUServer / t REG_SZ / d http://10.7.11.136:8530 / freg add HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ windows / v WUStatusServer / t REG_SZ / d http://10.7.11.136:8530 / f%% WSUS server address It is equivalent to configuring the Intranet Microsoft update service location reg add HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ windows\ WindowsUpdate / v TargetGroupEnabled / t REG_DWORD / D1 / freg add HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ windows\ WindowsUpdate / v TargetGroup / t REG_SZ / f% WSUS Client to enable group assignment and specify the name of the group. This is equivalent to configuring the client target reg add HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ windows\ WindowsUpdate\ AU / v AUOptions / t REG_DWORD / d 3 / f%% to configure automatic updates in the group policy. 2 = pre-download notification, 3 = automatic download and notification installation, 4 = automatic download and scheduled installation (with ScheduledInstallDay and ScheduledInstallTime)% 5 = automatic update is required, but it can be configured by end users and local administrators. Reg add HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ windows\ WindowsUpdate\ AU / v DetectionFrequency / t REG_DWORD / d 22 / f%% configure automatic update detection frequency 1-22Hourreg add HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ windows\ WindowsUpdate / v DetectionFrequencyEnabled / t REG_DWORD / d 1 / f% enable automatic update detection frequency reg add HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ windows\ WindowsUpdate\ AU / v NoAutoRebootWithLoggedOnUsers / t REG_DWORD / D 1 / f%% 1 = automatic updates will wait for any logged-in user to restart the computer Instead of automatically causing the computer to restart, 0 = automatic update notifies the user that the computer will automatically restart within 5 minutes to complete the installation. Reg add HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ windows\ WindowsUpdate\ AU / v NoAutoUpdate / t REG_DWORD / d 0 / f%% 0 = enable automatic update, 1 = disable automatic update. Reg add HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ windows\ WindowsUpdate\ AU / v AutoInstallMinorUpdates / t REG_DWORD / d 1 / f%% automatically install minor update, 1 = install minor update silently, 0 = handle minor update reg add HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ windows\ AU / v NoAUAsDefaultShutdownOption / t REG_DWORD / d 1 / f%% Windows does not override the shutdown option of the start menu Reg add HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ windows\ WindowsUpdate\ AU / v ScheduledInstallDay / t REG_DWORD / d 7 / freg add HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ windows\ WindowsUpdate / v ScheduledInstallTime / t REG_DWORD / d 6 / f%% this parameter takes effect only when the AUOptions key is set to 4. Date range = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7Power0 = every day, 1 to 7 = Sunday (1) to Saturday (7); 24-hour system can add the following command to the script to help clients contact WSUS server net stop wuauservnet start wuauservwuauclt / detectnow as soon as possible