Hello,
I want deploy the bath bellow for GPO, to force clients Wsus to console,
I'm going to put the bat in the Machine GPO to run when the pc gets it, but I want to create a parameter to validate if it has already run so I will not run again.
Can you help?
net stop wuauserv
reg Delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientId /f
reg Delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientIDValidation /f
net start wuauserv
wuauclt.exe /resetauthorization /detectnow
pause