Windows-Server-2003
如何配置工作組以接收來自 WSUS 的更新
嗨,伙計們,我有 WSUS 伺服器,並且可以正常使用活動字典。但是如何將在 windows xp 上執行的工作組 pc 連接到 WSUS 而無需將它們加入 AD?先感謝您。
我使用以下批處理腳本來打開和關閉 WSUS 的系統。在我們贈送它們之前快速更新格式化系統非常有用。
改變
$$ SERVER $$到該部分下的 WSUS 伺服器
:USEWSUS
。@echo off :START cls echo Temporary WSUS Script echo ============================== echo This script will flip between using the internal WSUS server and Microsoft's servers. echo. set /p WSUSSETTING=Type [W] to use WSUS or [C] to clear the setting and use MS servers: IF /i (%WSUSSETTING%) == (W) goto CONTINUE if /i (%WSUSSETTING%) == (C) goto CONTINUE echo. echo Error: Invalid selection pause goto START :CONTINUE echo Stopping Update Services... net stop wuauserv echo Deleting timeout registry entries (Safe to ignore errors)... reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v LastWaitTimeout /f reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v DetectionStartTime /f reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v NextDetectionTime /f IF /i (%WSUSSETTING%) == (W) goto USEWSUS IF /i (%WSUSSETTING%) == (C) goto USEMS :USEWSUS echo Changing update server to local WSUS server... reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate" /v WUServer /t REG_SZ /d "http://[SERVER]:8530" /f reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate" /v WUStatusServer /t REG_SZ /d "http://[SERVER]:8530" /f reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 3 /f reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AutoInstallMinorUpdate /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v UseWUServer /t REG_DWORD /d 1 /f goto COMPLETE :USEMS echo Clearing WSUS update server... reg delete "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v WUServer /f reg delete "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v WUStatusServer /f reg delete "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v UseWUServer /f goto COMPLETE :COMPLETE echo Starting Update Services... net start wuauserv :END echo --- echo Complete. pause