diff --git a/Fix-WindowsAutomaticUpdates.bat b/Fix-WindowsAutomaticUpdates.bat index 0e9e2f3..9cf5fb3 100644 --- a/Fix-WindowsAutomaticUpdates.bat +++ b/Fix-WindowsAutomaticUpdates.bat @@ -26,8 +26,8 @@ if %ERRORLEVEL% EQU 0 ( :wsus-config echo Configuring Windows Server Update Services (WSUS) -if [%WUServer%] NEQ [] echo - WSUS Server: %WUServer% -if [%WUStatusServer%] NEQ [] echo - WSUS Status Server: %WUStatusServer% +if [%WUServer%] NEQ [] echo - Configured WSUS Server: %WUServer% +if [%WUStatusServer%] NEQ [] echo - Configured WSUS Status Server: %WUStatusServer% call :reset-errorlevel reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v UseWUServer /t REG_DWORD /d "0x0" /f > nul 2>&1 if %ERRORLEVEL% EQU 0 echo - Disable WSUS (this might be enabled again via GPO)