Some time ago I wrote a post title Automating Computer Maintenance where I talked about creating batch files to execute some anti-virus, anti-spyware and a defrag application on a computer. The batch files can then be scheduled to run on a computer at a specific time to ensure that regular maintenance is performed without having a user remembering to do it.
After the post, I received e-mails about having the batch files also shutdown the computer once the maintenance was completed. The good news is that getting a batch file to shutdown, or even just restart, a computer running Windows is very easy to do. Let’s look at how this is done.