CLI & Registry User Administration in Windows XP
This is a simple user administration in Windows XP. There are lots of hidden gems here.
Adding a new user,
net user somename somepassword /add
Deleting a user,
net user somename somepassword /delete
Making a user an administrator,
net localgroup Administrators somename /add
Removing user administrator rights,
net localgroup Administrators somename /delete
Hiding a user from the login screen,
REG ADD \\"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\ SpecialAccounts\\UserList\\" /f /v somename /t REG_DWORD /d 0
Showing a user on the login screen,
REG ADD \\"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\ SpecialAccounts\\UserList\\" /f /v somename /t REG_DWORD /d 1

I used to know of an ‘lsof’ equivalent via the net utility, except that it may have only listed files shared out over the network.
I cannot for the life of me figure it out whenever I’m around a windows computer. I don’t suppose you would know?
Comment by VxJasonxV — August 3, 2007 @ 11:13 pm
Help please i just bought a used machine from a company that closed down & i need to remove the admin securities but i do not have any passwords & no one is around to ask
Comment by Jorge — February 5, 2008 @ 1:04 pm
You can try shellcode injection and use the commands above.
Comment by Joset Anthony Zamora — February 5, 2008 @ 5:00 pm