PA Bear [MS MVP] wrote informs us that John S. wrote:
>> I'm trying to setup a .bat file / script so that I can get Windows
>> Updates to:
>> 1.) check for new updates,
>> 2.) download the update(s)
>> 3.) install the update(s)
>> 4.) reboot (only if needed) after normal working hours (would love to
>> schedule around 5am).
>> 5.) Update status to the WSUS after the reboot.
>>
>> I need this to run so that there would be NO user input.
For the Windows Update parts you could base it on my script:
<http://www.scms.waikato.ac.nz/~harry/wsusupdate.vbs>
http://www.scms.waikato.ac.nz/~harry/wsusupdate.vbs
You can schedule scripts to run at a given time of day using the AT command, but
you should add a random delay at the start of the script so they don't all
contact the server at the same time.
I believe the Windows Update Agent will update the status after the reboot
automatically. If it doesn't seem to be working, you could add "wuauclt
/detectnow" as a startup script.
Harry.