update log output

This commit is contained in:
2021-10-31 15:11:27 -04:00
parent 73a7e7cb8f
commit 0ba44cb229
+2 -2
View File
@@ -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)