Monday, July 30, 2007

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

No comments: