Disallowrun and locked exe, cmd, regedit

Page 2 of 2 FirstFirst 12

  1. Posts : 8,102
    windows 10
       #11

    You can access the reg from another PC or you may be able to boot a rescue DVD and revert from there or run a CMD to delete keys by running a schedule task as that runs as system
      My Computer


  2. Posts : 42,953
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #12

    Windows automatically keeps a backup of the registry. My concern is it may be too late and this is also corrupt.

    However....
    Disallowrun and locked exe, cmd, regedit Attached Files
      My Computers


  3. Posts : 8
    Windows 10 Home
    Thread Starter
       #13

    I solved it.

    For anyone who will have same issue by locking themselves out of exes, regedit, cmd or anything here is what I did:

    1. Shift + Left Mouse click on restart PC
    2. Go to Advanced tools and start command prompt.
    3. IF your windows drive is C, type c:
    4. type regedit
    5. Highlight HKEY LOCAL MACHINE
    6. Click File -> Load Hive
    7. Navigate to c:\users\YOURUSERNAME
    8. Tricky part. If you dont see ntuser.dat, just type it in the open box, and click open.
    9. Navigate to the registry that was added or changed (Software/Microsoft/Windows/...etc), or use CRTL + F to search for key value (in my case it was DisallowRun or RestrictRun)
    10. Delete or modify the keys and values.
    11. Select Hive you've loaded and click File-Unload Hive.

    Done. All works.
      My Computer


  4. Posts : 4,224
    Windows 10
       #14

    Dear Snekkestsnek:
    Glad you got your problem fixed. I hope you don't mind being a "poster person" for conventional wisdom and best practice. Namely: this situation explains precisely why the FIRST STEP in registry editing should always be to BACK UP YOUR PC. Then, if things go wrong -- as they did for you, to your immediate regret and consternation -- you can simply restore the backup and return things to where they were beforehand. An image backup made just before such efforts using a package like Macrium Reflect would be an excellent approach to this kind of situation.
    HTH, and sorry for your troubles.
    --Ed--
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:35.
Find Us




Windows 10 Forums