Force Windows to shutdown and install windows updates from WSUS at a specific time for free

This is something that seems to effect a lot of companies, clients well out of date and staying powered on all night. In order to shutdown machines we can use simple startup scripts via GPO to create schedule tasks. We can use the same technique to run a VBS script that will check for Updates (Via WSUS if available) install and log all available updates and then when complete shut the machine down.

To start create the following VBS script and save it somewhere machines have access such as the netlogon folder \domainnetlogon

Once this is complete simply create a new GPO to run ScheduleTaskCreator.bat as a computer startup script. Since all these run as SYSTEM no need to worry about admin rights etc just make sure your clients are reporting to the WSUS server.