When you lost built-in admin rights, most of features stopped working for you. This article shows how to recover lost administrative rights in Windows 10.

Built-in administrative account is the prime administrator account which you create when you log on first time to Windows. This administrative account rights are very important and losing these rights will bring lots of trouble to you. So in case, if you have just realized that you’ve lost administrator rights, this post is for you. Following are the symptoms you might be facing:

  • While installing some program, User Account Control (UAC) prompt appears but there is no place to input your password and Yes button is greyed out or missing
  • You’re not able to install programs even when you’re administrator
  • You can’t upgrade Windows to a newer edition
  • You can’t add new features to Windows

FIX Lost Administrative Rights In Windows 10

There can be miscellaneous reasons that may contribute to take administrative rights away from you. If you have a secondary user account, you can reset built-in admin account with the help of it:

Steps to reset built-in administrator account in Windows

However, if you still want to regain your lost rights, you can try the steps mentioned below. The only requirement here is the presence of secondary or standard admin account on your system.

FIX : Lost Administrative Rights In Windows 10/8.1/8/7

1. Boot into System Recovery Options. Hit the Command prompt entry at following screen:

FIX Lost Administrative Rights In Windows 10

2. Last step will result in opening of Command Prompt at boot.

FIX Lost Administrative Rights In Windows 10

3. In the Command Prompt window, type regedit and hit Enter to open Registry Editor. Now highlight HKEY_LOCAL_MACHINE branch and then click File > Load Hive.

FIX Lost Administrative Rights In Windows 10

4. Moving on, in the Load Hive window, browse the folder system root drive > Windows > System32 > config.

FIX Lost Administrative Rights In Windows 10

5. Under config folder, type SAM or click file named SAM and hit Open/press Enter key.

FIX Lost Administrative Rights In Windows 10

6. Now provide a unique name to hive. In this case, you’ve to name it as REM_SAM. Click OK and hive will be loaded into HKEY_LOCAL_MACHINE branch.

FIX Lost Administrative Rights In Windows 10

7. Navigate to following registry key now:


FIX Lost Administrative Rights In Windows 10

8. Next, highlight 000001F4 key and in the corresponding right pane, look for binary registry DWORD (REG_BINARY) named F. Double click on this DWORD to edit its Data:

FIX Lost Administrative Rights In Windows 10

9. Finally, in the Edit Binary Value box shown above, place your cursor on line 38, in the right side of 11. Press Delete key now and then type 10. Click OK. Close Registry Editor and Command Prompt windows, and turn off your PC.

FIX Lost Administrative Rights In Windows 10

After reboot, you’ll find that you’ve got your admin rights back.

Check the live illustration of this method in following video:

Hope this helps!


  • I reached step 5, then I stupidly managed to double-click the SAM file rather than click ‘Open’. Now when I try clicking ‘Open’, all I get is a message saying ‘This file is in use. Enter a new name or close the file that’s open in another program’. Also, there is a key in the Registry Editor called ‘SAM’, under HKEY_LOCAL_MACHINE, that contains only a single subkey, also called ‘SAM’, which contains only a ‘(Default)’ REG_SZ file. This key might have been there to begin with, but I suspect was created by my error. Is there a way to correct this error and create the REM_SAM hive I was supposed to, or have I just screwed myself completely?

  • Kapil Arya

    ^^ The ‘SAM’ key is there by default and it have user records. Can you retry complete steps carefully and as directed, see if it helps.

  • Tried it again several times, and still coming up with the same error message. I’m loading the file from the local drive (C:, in my case) as instructed.

  • Kapil Arya

    ^^ I guess there is something wrong with registry. I suggest you to go ahead with Command Prompt method and see if it helps you: https://www.kapilarya.com/reset-built-in-administrator-account-in-windows-10

  • there is no folder named config in my pc

  • Will I lose all of my files if I use this method? I’ve tried everything else

  • Kapil Arya

    ^^ I don’t think so. It just enables the administrator account and do not delete your files.

  • Kapil Arya
    Hi, I’m boriswil. You answered me, thanks, but I DON’T have a secondary admin account and my built-in adm acc was accid deleted. Is there a way to restore it or somehow recover admin rights without doing a reset to factory settings and horribly losing a lot of things? Besides, my windows 10 was installed in my laptop when I bought it and I don’t have a win 10 disk to do such reset to fact settings. Is there any hope?

  • Kapil Arya

    ^^ You can do a System Restore if you’ve restore point created before you started facing issue. If you don’t have it, unfortunately you need to reinstall Windows w/o affecting your data: https://www.kapilarya.com/reinstall-windows-10-without-affecting-personal-files

  • I have a problem on step. It says “You need to sign in as an administrator” to continue, but there aren’t any administrator account on this PC”

  • Hello Kapil Arya, I have a question hope your help.
    Question: If my size of the cursor file is greater than a certain value and is displayed to be compressed. Using setsystemcursor() set the system mouse pointer is not working. Whether the question can be fixed by modifying regedit value?

  • Hello kapil I’m not having a secondary admin account,,,now how should i get the command prompt

  • Kapil, what about enabling built-in Admin from CMD (from booted media if necessary) to change account back to Admin? Would this also work, or has something else happened to the account?

  • Kapil Arya

    ^^ Greg, I’ve cited many instances when enabling the built-in admin via Command Prompt just doesn’t work. But the registry way mentioned in this article in works always, that’s why I recommend it more :)

  • OK I’m going to start recommending it for these instances.

    Do you happen to know what is happening to explain why an Admin account could lose privileges without the existence of another Admin which is supposedly forbidden? Is it a bug? If so we need to elevate this.

    I do notice that since CMD is always going to prompt for Admin permission except for booted media.

  • Kapil Arya

    ^^ Not sure what may cause the issue of losing admin rights but most users have faced this. A close suspect might be third-party programs or Windows Update. I don’t think it’s a bug.

  • Thank you! This is the only thing that would work! I’m back in control of my computer! phew

  • Kapil Arya

    ^^ That’s awesome Jolene, glad we could help you 😎

  • Hello I get to the point where I need to load the C: drive but uuuh even in Hive it does not detect that I have ANY drive …. Therefore I cant continue..

  • Kapil Arya

    ^^ Can you load SAM file?

  • Tried it even changed the F 00038 value to 10 but still getting the administrator password box is there a way to fix that

  • Kapil Arya

    ^^ Can you try this and see if it helps: https://www.kapilarya.com/reset-built-in-administrator-account-in-windows-10

  • Hi Kapil,
    I have a similar problem but from the first step I don’t even get the UAC pop up, I simply get this error message: ”This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel”

    of course I cannot install or uninstall anything. I cannot Run anything, no regedit, if I try to run config I get a message ”You dont have permission to access this folder” and if i click continue to get access nothing happens..
    If I try to open cmd as administrator i get this error”Windows cannot find C:\WINDOWS\system32\cmd.exe”
    Are you familiar with this problem?

  • hey! this actually worked.but i am wondering if it will harm my pc.

  • Kapil Arya

    ^^ No 😊

  • hi again. I want to ask that my windows does not respond frequently and other programs crash frequently.also uninstall.exe is gone. why is this happening.it started after i did what you said in this tutorial.

  • Is there anyway to reset this

  • I reached step 5, but when I ‘Open’, file SAM it say ‘This file is in use, Enter a new name or close the file that’s open in another program’. i saw how its done in the video but in my computer it doesn’t work. please help

  • As of 3/23/2018, this solution is still working. Thank you, Kapil Arya!
    That said, the “Delete” part in step 9 should be “Backspace” instead.

  • Kapil Arya

    ^^ Happy to help 😎

  • I don’t have permission to access the config folder. How do I get to pass this point?

  • Thank you so much for this fix, it saved me hours of work and stress.

  • Kapil Arya

    ^^ Glad to help, John 😊

  • Thank you very much. You saved my day.

  • Kapil Arya

    ^^ Happy to help, Rajnish 😎

  • thank you very much. you’re one of the best.

  • Kapil Arya

    ^^ You’re most welcome Helekesite 😊

  • I did this fix and restarted my computer and now just get the blue stop code screens. It tries to repair and is unable to and restarts. I can’t start in safe mode either. I get the following stop codes: IRQL not less or equal – I get this one A LOT
    Driver overran stack buffer
    Crypto library internal error
    Page fault in nonpaged area
    APC index mismatched

  • When I enter REM_SAM it says The process cannot access the file because it is being used by another process…I’m confused
    How can I stop the previous process

  • Kapil Arya

    ^^ Refer: https://www.kapilarya.com/the-process-cannot-access-the-file-because-it-is-being-used-by-another-process

  • When I got to step 8, the F 00038 value was already set to 10. What do I do?

  • Everything worked fine except this created an “log in” at the start screen that needs no password. Although I am the only one using my computer Im not comfortable leaving administrator rights open to anyone who decides to turn it on or if it gets stolen.

  • Kapil Arya

    ^^ Alright! You can add a password to this account, using lusrmgr snap-in. Open this snap-in, click Users > Built-in administrator > right click > Add password.

  • Hi Kapil, After getting into command prompt mode , its asking for Administrator password which i dont remember. Is there any way I can remove the password to fix this issue?

  • Hi Kapil, when I got into Command prompt mode, it asked me to login to administrator mode for which I dont remember the password. Is there any way I can get into the next step by removing the admin password? Its not letting me go ahead with further steps to get back lost Admin access.

  • Kapil Arya

    ^^ Plug Windows 10 bootable USB and then use recovery mode Command Prompt.

  • i reached upto config. now cant open it. again asking do you want to….. giving option no only. so what can i do now

  • I think I’m in the right area… After a system reboot and reinstall of Windows 10, my PC no longer recognizes my password and says “Windows couldn’t connect to the ProfSvc service. Please contact your system Administrator”.

    I am the Admin. It’s my computer. 😡. Cann you help?

  • Kapil Arya

    ^^ Please refer this fix: https://www.kapilarya.com/the-user-profile-service-failed-the-sign-in-windows-10

  • Thanks, Kapil. But since my screen login doesn’t recognize my password, in locked out and unable to access the start menu or Internet.

  • Thanks, Kapil, but I’m locked out and unable to access the start menu or Internet because of pc says password is not valid.

  • Thank you so much, Now I can full control the computer again.

  • Kapil Arya

    ^^ You’re most welcome Rajesh 😊

  • Thanks a lot kapil…it works!

  • Kapil Arya

    ^^ Glad to help waklogo 😊

  • there is no folder ‘system root drive’ in the ‘hive’ window

  • Kapil Arya

    ^^ Here, ‘system root drive’ means the drive on which Windows is installed.

  • I can’t get to the command prompt or any other menu in the advanced options, it requires me to login as an admin and when I do it keeps telling me it’s a wrong password although it is not.

  • Thanks Kapil you are really a genius .

  • Kapil Arya

    ^^ Glad to help Harsh 😊

  • Thank you for this detailed procedure. Unfortunately I failed at the first hurdle: “The only requirement here is the presence of secondary or standard admin account on your system.”

    I have only ever had one account – ‘Colin’. I’m not aware of any others – although I think I added me as a gmail address account.

  • Kapil Arya

    ^^ Try booting via Windows 10 install media, it won’t require secondary account to operate Command Prompt.

  • What will i do if “Load Hive” is not clickable after it opens the registry editor from cmd?

  • If I could access config, I wouldnt need to come this page. this is of no help. gets stuck at config with same prob.

  • Kapil, I scoured the internet and spent way to long trying to find a solution and yours worked. Thank you very much. You should add a “Donate” button so users can buy you a cup of coffee or storage space. ;)

  • Kapil Arya

    ^^ Glad I could help! I love to help people, not doing this for money or to receive donation 😊

  • I have found the config folder but cant open it because of user account control please help

  • Kapil Arya

    ^^ What is the exact error you received?

  • Dear Kapil,

    I don’t know how to Thank you because just saying thank you is not enough..I followed your advise step by step and I could add restore my admin privileges.

    Thanks a million bro! God bless you.

  • Kapil Arya

    ^^ Glad to help Punia 😊

  • Key in the REM_SAM, show cannot process. Any solution? I can’t recover my admin account

  • Kapil Arya

    ^^ Refer this link: https://www.kapilarya.com/the-process-cannot-access-the-file-because-it-is-being-used-by-another-process

  • Hello Kapil,
    Prior to this last forced upgrade from Microsoft, I was able to stop and disable update service and update orchestrator. Now both services are greyed-out saying I don’t have permission.

    I am now only able to temporarily end the process of these services only using the PID in Task Manager.

    I am able to do some playing around with these two services in Task scheduler but I am now limited there also with no permissions.

    I applied your procedure to my computer…
    Windows Home
    V 1803
    OS Build 17134.472
    and everything went just as you said.

    However, it did not fix my greyed-out or permission issues.

    Specifically, in windows update and update orchestrator, I still do not have privileges in those services (still greyed out), and my Task Manager, and Task Scheduler, and Registry still prevent me from privileges.

    I did have all of those privileges prior to this last forced update about one week ago, 20 Dec 18.

    I know there are those working on a fix to prevent 1809 from downloading soon, but sure was hoping your fix would have done it. Thanks for your efforts.

  • Kapil Arya

    ^^ Please perform repair upgrade, see if it helps: https://www.kapilarya.com/how-to-repair-windows-10-using-in-place-upgrade

  • Please help me Kapil. Following your steps to boot in command prompt On windows recovery setting it asks for password I entered the right password but it says that it is incorrect. What to do

  • Kapil Arya

    ^^ Try booting into Safe Mode, see if that works!

  • For some administrative account is without typing any password just hit enter leave the box empty and it should work… and do a system restore to resolve your problem, start menu go to your power press shift key then press restart from there advanced option or just system restore click on administrative or so… and then click enter without entering any password and go to your restore point before the date it happened…

  • Kapil Arya

    ^^ I don’t get that: ‘just hit enter leave the box empty and it should work’. There is no box appearing which can be skipped with Enter key.

  • Hello Kapil, I did the exact steps you provided here and when I typed the REM_SAM, I got ‘couldn’t load SAM file, it is already in use’. What should I do? Can you help me?

  • Kapil Arya

    ^^ Known problem. Refer: https://www.kapilarya.com/the-process-cannot-access-the-file-because-it-is-being-used-by-another-process

  • Hi Arya :
    I have two problems with your progress At first when I hit command prompt open blue page that asked me enter ID key I skipped this and then typed regedit and so on untill I must go to windows which that on C partition but my c partition were blocked by bitlocker but I opened system32 file on C with dos and after that go to config and select SAM.the 2nd problem is when I typed REM-SAM and hit enter give me an error message please let me know what can I do?

  • Hello. I can’t use regedit on com prompt w/o admin right through Sys Rec Options. I signed in and tried again on com prompt. I got as far as Load HIve. No folder of system>root drive>windows>system32>config. Everything else I tried to open I need admin right.
    Any suggestions? :( thx

  • I went to delete 11 and type 10, 10 was already there. so this didn’t work. What to do?

  • Kapil Arya

    ^^ Please refer WAY 2 mentioned here: https://www.kapilarya.com/how-to-enable-built-in-administrator-account-in-windows-10.

  • You just save my life, thank you so much ,for a second i thought i might need to repair the computer,and i was so frustrating that i had try so many times but still could not get back the administrator rights,anyway thank you so much

  • Kapil Arya

    ^^ Glad to help Yw 😎

  • when I are in system recovery options is there no command prompt. I have tried many times, but it i can’t see it

  • Wow thank you so much sir for saving my day, this actually save my day today from my sister who own the laptop. Thank thank thank so much, I hope you can help more people in the future^__^

  • Epic! You saved my life, Thanks!

  • Kapil Arya

    ^^ Glad I could help 😎

  • hi Kapil… when trying to open config file, system responds: you don’t currently have permission.. enter continue… same problem as before… EDIT SECURITY can not enter only ‘NO’ option shown in window.

  • Kapil Arya

    ^^ Try booting to Advanced System Recovery Options via Windows 10 installation media instead.

  • Thanks, problem solved using your advice…

  • Kapil Arya

    ^^ Glad to help Robert!

  • This did work for me(for which I thank you Kapil) but with a slight catch: A new user account with the name Administrator was created which seemed to be allowing admin rights. My previous admin account was also there.

  • Kapil Arya

    ^^ Glad to help Shashwat 😎

  • Kapil, can you also help me remove the local account created(on following the steps on this page) with the name of ‘Administrator’ from my system, if it is possible? I can’t see any option to remove it using the control panel or settings.

  • I was able to remove the local account created(on following the steps on this page) with the name of ‘Administrator’ from my system by following steps on: https://www.kapilarya.com/how-to-enable-built-in-administrator-account-in-windows-10 with a slight change- I used ‘net user administrator /active:no’ instead of ‘net user administrator /active:yes’ in Way 2 on that page. Thank you Kapil again. You are very knowledgable.

  • Kapil Arya

    ^^ You’re most welcome 😊

  • 5 step is given access denied option in config folder.

  • Kapil Arya

    ^^ Make sure you’re selecting correct system drive letter.

  • The value in the file mentioned was already set to 10 but in a file ending f8 was set to 11. What should i do?

  • Kapil Arya

    ^^ There is no ‘f8’ mentioned in step 9. What you need to do is > place your cursor on line 38, in the right side of 11. Press Delete key now and then type 10.

  • Didn’t work at all. Complete waste of time.

  • hi
    I deleted my admin account by mistake and because it was the only account on the laptop I am now unable to log back in. Any advise as to how I can solve this problem?

  • Kapil Arya

    ^^ The steps mentioned in this article are still applicable for you.

  • After reaching command prompt “preparing command prompt” message or command prompt screen to type regedit does not appear. Instead it is asking for a administrator password. Please help.

  • Kapil Arya

    ^^ Try booting to Advanced System Recovery Options using Windows 10 installation media instead.

  • ^^ Thanks Kapil this worked for me :-)

  • Thanks a lot.

  • Kapil Arya

    ^^ Glad to help Pradip!

  • Hi Kapil.
    I am facing the problem.
    I recently upgraded to windows 10 from windows 7. in windows seven I had two accounts one was the main account which I used and it had complete admin access and the other was secondary and didn’t had admin access. When I upgraded I logged in to one of the account with my password which I used to use in my administrator account but there was a problem. I have lost my administration in the PC.
    I am asked to login with the admin username and password.
    Username is already mentioned there which is the account which did not had administration access in my PC in window 7 but here I am asked to enter the password and unfortunately I have forgot it’s password and now I am unable to login and get administrator access. I am not able to access many apps install anything and also not able to install windows online..when I try to open cmd in troubleshoot while Booting my PC it only shows and asks password for that account which has administrator access now and was secondary in windows 7 and I am not able to access anything which requires administrator access.

    Please help me can I get administrator access without loosing my data.

    Will be looking for your reply.(please help)

    With Regards
    Tavish Bhardwaj

  • Kapil Arya

    ^^ Have you tried steps mentioned in the article?

  • I tried with all the steps but not a single one worked for me. In every case it is asking for administrator access login which I am not able to.
    Please help.
    It’s important.

  • Kapil Arya

    ^^ I suggest booting from installation or recovery media. Refer my previous comments here for hints.

  • Will I lose my personal information after this process

  • Kapil Arya

    ^^ Nope!

  • Hey there ! I have got stuck on step 6. When I type “REM_SAM” and press enter it shows an error message which says, “Cannot Load X:\Widows\System 32\config\SAM: The process cannot access the file because it is being used by another process.” FYI I’ve windows 10 installed on my PC.

  • Kapil Arya

    ^^ Akshat, refer this fix: https://www.kapilarya.com/the-process-cannot-access-the-file-because-it-is-being-used-by-another-process

  • Leave a Reply

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

    Recent Comments

    • Kapil Arya : ^^ You need to correctly identify the drive on which Windows is instal...

      15 hours ago

    • Sadri : Hello I have tried it but there is no drive as shown windows10. And co...

      1 day ago

    • Sikander : Bro, you are a hero, saved me from trash auto update of my old gpu dri...

      1 day ago

    • Kapil Arya : ^^ It means you've Camera drivers missing. Try getting the appropriate...

      1 day ago