From 0ba44cb22921d6836639aedc1e570a963356d364 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Sun, 31 Oct 2021 15:11:27 -0400 Subject: [PATCH] update log output --- Fix-WindowsAutomaticUpdates.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)