How do I remove temp folders left in the root drive when the patching process is incomplete?
Run the attached script with a ? to get usage.
The script does a number of things:
By default it runs in "list only" mode. This is a trial run mode, which will just show what files are to be moved or deleted.
To save output, just redirect at the command line. For example, MSPatchTempFolderCleanUp.vbs /listonly:false > c:\temp.log
Directory matching info:
It would be recommended to run this script on a schedule as folders moved into the temporary directory will not get removed unless the script is run again.