TLM, Thanks! I completely missed RegDelete when looking at the RegRead help.
As for the user SID, I believe I can comspec with the following:
wmic useraccount where (name='username' and domain='currentdomain') get name,sid
I'm one step closer!
Search found 43 matches
- 20 Jul 2015, 17:30
- Forum: Ask For Help
- Topic: Removing user profiles from terminal servers
- Replies: 7
- Views: 2079
Hello, I am trying to build something that will assist in managing user profiles within a large terminal server farm. The intent is to use this for rebuilding user's profiles quickly, or for account terminations. Goal: Get the SID of a user from their domain name Delete Registry key from HKEY_LOCAL_...