• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PC maintenance script project

For 90% of the PCs I repair, no matter what the complaint is, I always manually do the same things:

- empty all the usual temp directories
- delete all system restore points except the most recent (using Disk Cleanup)
- clear all Event Viewer logs (after checking for any interesting entries)
- full chkdsk /r (with surface scan)
- general defrag
- defrag with boot optimization (e.g. defrag -b)
- create a new restore point before returning to customer

I'd love to have a script that will automate these tasks in succession and log the result, disabling any sleep/standby/hibernate timers and screen savers that could interfere with the completion of these tasks.

Except, I couldn't find a functional script with two hands and a flashlight. Plus, I'm not sure what issues I might encounter with permissions for executing these tasks via script. Also, an auto-logon function would be handy to negotiate system restarts between tasks that need to run during boot (e.g. chkdsk), for computers that have more than the default administrator profile (I can always remove any password then put it back later).

Anyone want to add to the list of tasks they find helpful and/or help write the script?
 
Last edited:
Back
Top