update log output
This commit is contained in:
@@ -26,8 +26,8 @@ if %ERRORLEVEL% EQU 0 (
|
|||||||
|
|
||||||
:wsus-config
|
:wsus-config
|
||||||
echo Configuring Windows Server Update Services (WSUS)
|
echo Configuring Windows Server Update Services (WSUS)
|
||||||
if [%WUServer%] NEQ [] echo - WSUS Server: %WUServer%
|
if [%WUServer%] NEQ [] echo - Configured WSUS Server: %WUServer%
|
||||||
if [%WUStatusServer%] NEQ [] echo - WSUS Status Server: %WUStatusServer%
|
if [%WUStatusServer%] NEQ [] echo - Configured WSUS Status Server: %WUStatusServer%
|
||||||
call :reset-errorlevel
|
call :reset-errorlevel
|
||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v UseWUServer /t REG_DWORD /d "0x0" /f > nul 2>&1
|
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)
|
if %ERRORLEVEL% EQU 0 echo - Disable WSUS (this might be enabled again via GPO)
|
||||||
|
|||||||
Reference in New Issue
Block a user