Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing registry without admin rights

Tags:

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.

like image 918
John White Avatar asked Jan 30 '11 17:01

John White


People also ask

Can I edit registry 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.

How do I bypass Windows administrators restrictions?

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.

How do I get permission to change registry keys?

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.

How do I give admin rights to a registry?

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.


1 Answers

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.

like image 78
SLaks Avatar answered Oct 11 '22 01:10

SLaks