DoUpdate.cmd /autoreboot /shutdown

Re: DoUpdate.cmd /autoreboot /shutdown

Postby Ckruijntjens » 29.07.2016, 13:47

Hello i resloved it. I set up mdt to autologon after deployment en then run the batch file. Now it is working as it should. However i have one question. I use the /reboot switch now but is it also possible that when wsuss offline is done (say after 5 reboots) that the system is being shutdown?
Ckruijntjens
 

Re: DoUpdate.cmd /autoreboot /shutdown

Postby aker » 29.07.2016, 23:13

You could add a FinalizationHook.cmd (see the FAQ for a HowTo) with this content:
Code: Select all
if not "%REBOOT_REQUIRED%"=="1" (
  if not "%RECALL_REQUIRED%"=="1" (
    shutdown /s /f /t 60
  )
)

This will shutdown 1 minute after that command, so wsusou is able to clean up its data.
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to keep or sell it.
aker

WSUS Offline Update „Community Edition“
https://gitlab.com/wsusoffline/wsusoffline/-/releases
aker
 
Posts: 3999
Joined: 02.03.2011, 15:32

Previous

Return to Installation / Updating

Who is online

Users browsing this forum: No registered users and 35 guests