How do I use the Microsoft Resource Kit utility Delprof.exe to delete old profiles (older than 30 days) without deleting the local Administrator account?
delprof.exe /Q /C:\\remotecomputer /D:30
This gets almost there but I want to skip the local Administrator account. Also, do it silently without prompting for each account.
The letter "I" might do what your looking for, for the silent part:
But also look at http://www.wisesoft.co.uk/scripts/vbscript_delete_local_profiles.aspx which does the same kind of thing but dosn't use delprof and you can skip certain user profiles.
And if you are using roaming profiles and don't want them kept at all, look into using "Delete Cached copies of roaming profiles" in your GPO's which can be found at:
although it has been known to fail on wireless networks and such so it might still be good to run either delprof or another script every so often to catch those.
Have not tried it, but you probably have to update the profile that you want to keep. Its not very robust but it can be done with REG LOAD and then add, delete and unmount.