Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Create User Account via CMD
New Posts  All Forums:Forum Nav:

Create User Account via CMD - Page 2

post #11 of 16
Quote:
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 --> http://www.sevenforums.com/general-discussion/28472-unhide-hidden-administrator.html
ASRock X99 ITX
(6 items)
 
Hyper-V NAS
(9 items)
 
 
CPUMotherboardGraphicsRAM
intel 5820k ASRock X99E-ITX/ac KFA2 GeForce GTX 980Ti Corsair Vengeance LPX 16GB DDR4 PC4-24000C15 
Hard DriveCase
Samsung 850 EVO 1TB cooler master 915f 
  hide details  
Reply
ASRock X99 ITX
(6 items)
 
Hyper-V NAS
(9 items)
 
 
CPUMotherboardGraphicsRAM
intel 5820k ASRock X99E-ITX/ac KFA2 GeForce GTX 980Ti Corsair Vengeance LPX 16GB DDR4 PC4-24000C15 
Hard DriveCase
Samsung 850 EVO 1TB cooler master 915f 
  hide details  
Reply
post #12 of 16
Hi,

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.
post #13 of 16
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
post #14 of 16
I go in cmd mode safe start . ........but it takes me again in the log screen (vista windows) any help?
post #15 of 16
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?
post #16 of 16
    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:
    Code:
    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.
My desktop PC
(14 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-3770K Gigabyte P67A-D3-B3 NVIDIA GeForce 8400 GS  1x Corsair 8 GB 
Hard DriveHard DriveHard DriveOS
Kingston SV300S3 WesternDigital WD10EZEX Samsung HD154UI Windows 7 Ultimate SP1 x64 
MonitorMonitorKeyboardPower
Daewoo L947BK Gateway FPD1530 HTK-2001 Dynex DX-400WPS 
MouseAudio
Kensington K72400 Realtek ALC889 
  hide details  
Reply
My desktop PC
(14 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-3770K Gigabyte P67A-D3-B3 NVIDIA GeForce 8400 GS  1x Corsair 8 GB 
Hard DriveHard DriveHard DriveOS
Kingston SV300S3 WesternDigital WD10EZEX Samsung HD154UI Windows 7 Ultimate SP1 x64 
MonitorMonitorKeyboardPower
Daewoo L947BK Gateway FPD1530 HTK-2001 Dynex DX-400WPS 
MouseAudio
Kensington K72400 Realtek ALC889 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Windows
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Create User Account via CMD