Digital Stronghold

July 30, 2007

CLI & Registry User Administration in Windows XP

Filed under: Progressive Studies

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

3 Comments »

The URI to TrackBack this entry is: http://eradicus.blogsome.com/2007/07/30/cli-registry-user-administration-in-windows-xp/trackback/

  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

  2. 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

  3. You can try shellcode injection and use the commands above.

    Comment by Joset Anthony Zamora — February 5, 2008 @ 5:00 pm

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.

Theme designed by Joset Anthony Zamora