How can I tell if `wuauclt` is doing anything?

Todd Chester 666 Reputation points
2021-12-27T03:56:11.043+00:00

Hi All,

W10Pro-21H2

I have a customer who need to have their updates and reboots done at a specific time.

How can I tell is "wuauclt" has actually done something? All it does it return to the next line on the command line. I can ever give it junk on the command line and it does not error out or complain.

Many thanks,
-T

rem echo off  
  
rem run a forced M$ Update and rebboot  
  
rem References:  
rem    https://www.itechtics.com/run-windows-update-cmd/  
rem    https://stackoverflow.com/questions/2768125/start-a-disabled-windows-service  
rem    https://www.tenforums.com/tutorials/4499-start-stop-disable-services-windows-10-a.html  
rem    https://bobr.pw/en/it/windows/wuauclt-exe-keys-command-line-parameters  
rem    https://superuser.com/questions/690287/command-prompt-in-administrator-mode-doesnt-see-mapped-drives  
rem       net use K: \\rn6\CDs  
  
sc.exe config wuauserv start= demand  
net start wuauserv  
wuauclt /detectnow /updatenow  
net stop wuauserv  
sc.exe config wuauserv start= disabled  
rem shutdown /r /f /t 00  
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,617 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,914 questions
{count} vote

3 answers

Sort by: Most helpful
  1. Todd Chester 666 Reputation points
    2021-12-29T10:10:37.473+00:00
    9 people found this answer helpful.

  2. Adam J. Marshall 9,386 Reputation points MVP
    2021-12-27T04:43:43.867+00:00

    Stop using old, outdated commands.

    https://www.ajtek.ca/wsus/does-wuauclt-exe-detectnow-reportnow-work/

    Your best bet is to change the way you think about updates - https://www.ajtek.ca/wsus/how-to-setup-manage-and-maintain-wsus-part-4-creating-your-gpos-for-an-inheritance-setup/

    Setup active hours, tell it to install daily at a time when the systems will be on, and the systems will only install updates WHEN the updates have been approved and downloaded in WSUS.

    If you DON'T want them to update until a specific day, don't approve the updates until that day.

    Windows systems will check in, download, install, and restart outside of active hours.

    1 person found this answer helpful.

  3. Adam J. Marshall 9,386 Reputation points MVP
    2021-12-28T05:07:35.803+00:00

    The download and the install should NOT affect anything - you SHOULD be able to force a restart at a specific time using Scheduled install time: and set it to outside the active hours ALONG with Scheduled install day: 0 - Every day, 4 - Auto download and schedule the install, Every week Enabled, and Allow Automatic Updates immediate installation Enabled.

    I have this for my servers on my automatic ring and it works well.

    Approve the updates and watch as the systems restart.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.