Create User Account via CMD - Page 2 - - An Overclocking Community
Forum Jump: 

Create User Account via CMD

Thread Tools
post #11 of 17 (permalink) Old 04-20-2012, 11:30 AM
New to
Zeus's Avatar
Join Date: Jun 2004
Location: Herts, UK
Posts: 2,912
Rep: 222 (Unique: 155)
Originally Posted by BeardedGelfling View Post

Hi, I'm having trouble running the 3rd command line in windows 7 repair mode.
The command line:
net share concfg*c:\/grant:username,full
This line will not work comes up with 'The syntax of this command is: (then lists the syntax options)'
Can anyone help?
I've hidden the Administrator account using regedit. I assumed I'd be able to disable this setting vie regedit in Windows 7 repair mode but I can't find the changes I made to the registry as they do not appear.
The only other account is a very locked down (local group policy) kiosk autologon account. So am trying anything to be able to get back in so I can edit the GP of the kiosk user account.
This is a standalone computer, but it's meant to be on a domain but this failed and now I am unable to remote into the administrator account, so joining the computer to the domain via CMD would help but not had any luck with that ether. If anyone can help me out it'd be great. Thanks.

Have a look at this for unhiding the Admin account -->

Colin McRae: - "If in doubt, flat out"
Zeus is offline  
Sponsored Links
post #12 of 17 (permalink) Old 04-23-2012, 02:25 AM
New to
BeardedGelfling's Avatar
Join Date: Apr 2012
Posts: 3
Rep: 0

Thanks I did try to load the reg from windows 7 into the regedit in the PE environment but I had no idea where to look for it, and all web searches seem to pull up no good information. Probably just wasn't being patient enough in my search, was getting a bit frantic.

Thanks again.
BeardedGelfling is offline  
post #13 of 17 (permalink) Old 03-10-2013, 08:56 PM
New to
windache's Avatar
Join Date: Mar 2013
Posts: 1
Rep: 0
the second last command is

net share concfg=c:\ /grant:sysadmin,full

this must be done or the account won't work if your PC has more than one account domain
windache is offline  
Sponsored Links
post #14 of 17 (permalink) Old 03-05-2014, 10:41 AM
New to
AWAXXXO's Avatar
Join Date: Mar 2014
Posts: 1
Rep: 0
I go in cmd mode safe start . ........but it takes me again in the log screen (vista windows) any help?
AWAXXXO is offline  
post #15 of 17 (permalink) Old 01-10-2015, 01:23 AM
New to
TheZami999's Avatar
Join Date: Jan 2015
Posts: 1
Rep: 0
I believe and i know that works but what about in Guest mode? You can't do anything in guest mode with a cmd so how do i get it work? My problem here is that:

I enabled the guest mode, then i did WINDOWS + L and tried to go back to my main Admin account. I could not see my account there. There was just Guest and Change User. Change user asks you for username and password. Since i dont have a password in my main account, i just typed in my name and pressed enter it said "Invalid username or password". Then i tried to type in Administrator, same thing happened. So now im trying to get admin rights for guest mode to make a user account via cmd, but i always get a "system error 5". Halp?
TheZami999 is offline  
post #16 of 17 (permalink) Old 01-10-2015, 12:26 PM
Windows Wrangler
Techie007's Avatar
Join Date: Apr 2013
Location: Ohio
Posts: 2,219
Rep: 341 (Unique: 250)
    Use these steps to create a new administrative account that should give you the necessary privileges to correct the issues with you existing administrative account:

  1. Boot your computer with a Windows installation or repair disc (Windows Vista–10 discs should work, long as 32/64-bit matches what's currently installed on your system). If you don't have any such discs, you should be able to create a repair disc using any Windows Vista, Windows 7, or Windows 8 system.  Please note that Factory Recovery discs will not work for this in most cases.
  2. If you booted an installation disc, click "Repair your computer" when presented with the installation screen. [+]
  3. When you get to the System Recovery Options dialog, click Command Prompt. [+]
  4. At the command prompt, type "regedit" and press [Enter].
  5. In Registry Editor, click File -> Import.
  6. An open dialog should appear.  You will use this as an Explorer window.
  7. Click the drop-down at the top and find your system drive.  It may or may not be C:.
  8. Navigate to its \Windows\system32 folder.
  9. In the File name box, type "*" (asterisk without quotes) and press [Enter].
  10. Click inside the file pane to give it focus, and type "sethc" on the keyboard.
  11. A file named sethc should now be highlighted. Rename it to -sethc (put a hyphen in front of its name).
  12. Once you have completed the rename operation, type "cmd" on the keyboard.
  13. A file named cmd should now be highlighted.  Press [Ctrl]+[C], and then [Ctrl]+[V] to make a copy.
  14. Click on the new copy, press [F2], and rename it to sethc
  15. You should now see sethc with a black window icon, and -sethc with a round purple circle icon.
  16. Close out of Registry Editor, remove the installation/repair disc, and reboot your computer.
  17. Windows 8+ users: When the lock screen with the clock appears, press [Space] to dismiss it.
  18. On the login screen, press the left [Shift] key five times in a row.  A command prompt window should appear.  If nothing happens, try this step again.
  19. In the command window, type the following three commands, pressing [Enter] after each one:
    net.exe user Admin123 MyPassword /add
    net.exe localgroup Administrators Admin123 /add
    taskkill.exe /F /IM LogonUI.exe
  20. After entering the last command, the logon screen should flicker, and the new administrator account (Admin123) should appear. If nothing happens, reboot your computer and the new account should now be visible.
  21. Login as Admin123 using MyPassword for the password.
  22. Now that you're logged on as an Administrator on a new user account, you should be able go to Users in the Control Panel and re-grant your other account administrative privileges.
  23. Once you're all finished and everything works again, to improve the security of your computer, I strongly recommend undoing the hack we did in steps 1–16. To do so, repeat steps 1–10, and then:
  24. Delete sethc (with the black window icon).
  25. Rename -sethc (with the purple circle icon) back to sethc
  26. Close out of Registry Editor, remove the installation/repair disc, and reboot your computer.
  27. After successfully logging in to your original account, feel free to delete the Admin123 account (unless you would like to leave it just in case you have to do this again).  If you choose to leave it, please change its password to something other than MyPassword for better security.

Techie007 is offline  
post #17 of 17 (permalink) Old 10-13-2017, 01:37 PM
Blessed to Serve
Bigceeloc's Avatar
Join Date: Oct 2015
Location: Michigan
Posts: 840
Rep: 16 (Unique: 10)
This was very useful to me! Thanks guys!
Sorry to necro an old thread, but it came up in a bing search for my issue. smile.gif

The beginning of wisdom is this: Get wisdom. Though it cost all you have, get understanding. - Proverbs 4:7
Bigceeloc is offline  

Quick Reply

Register Now

In order to be able to post messages on the - An Overclocking Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
If you do not want to register, fill this field only and the name will be used as user name for your post.
Please enter a password for your user account. Note that passwords are case-sensitive.
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Forum Jump: 

Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off