I thought I needed admin rights for changing registry (I get errors if my app doesn't have such). Maybe only some part of the registry require admin rights.
Could you give some information? I need to store my app data somewhere without admin rights.
To force the regedit.exe to run without the administrator privileges and to suppress the UAC prompt, simple drag the EXE file you want to start to this BAT file on the desktop. Then the Registry Editor should start without a UAC prompt and without entering an administrator password.
When the logon screen appears, click the 'Ease of access' button which is to the left of the Power button then switch ON the 'Sticky Keys' option. Then press the 'Shift' key five times quickly and CMD should open with Administrator Privileges.
In Registry Editor, right-click the key that you can't edit (or the key that contains the value you can't edit) and then choose “Permissions” from the context menu. In the Permissions window that appears, click the “Advanced” button. Next, you're going to take ownership of the Registry key.
Right click UserList. Select New > DWORD Value. Type Administrator, and press enter. Close the registry editor and restart your computer, and you will have the option to log in using the admin account.
You need administrative privileges to write to locations that are shared by multiple users.
In the filesystem, this means folders like \WINDOWS
or \Program Files
. In the registry, this means all of the hives which aren't per-user.
Therefore, you can only write to HKEY_CURRENT_USER
.
Specifically, you should write to HKCU\Software\Your Company
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With