Frequently I need to delete all of the user profiles on a computer except for two accounts. I would like to have a script that can perform this for me.
The script must work for Windows 7.
Company policy makes it difficult to download and use any third party utility, so downloading a tool that can accomplish the task is not an acceptable alternative.
Currently I have a vbscript that performs other related functions so if I could do it in VBscript that would be great. If there is a way to do it straight from the Windows command line, that works too I can just call that from my VB script.
I've looked online and I cannot find a way to do this with either VBscript or with a microsoft cmdline utility that comes installed by default on Windows 7.
Does anyone know how I could perform this?
