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. Windows XP used to allow per-user keyboard remapping by editing the same entry in HKEY_CURRENT_USER. For instance, if you ever need to block a website on your home computer through the hosts file, your would require administrative privileges. RE: How to acces HKEY_LOCAL_MACHINE registry with user non admin? > variable in windows 10 as a standard user without having admin rights Yes you can, but you need to delegate change/full permissions in Registry, to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Change Hosts File Security. cmd /min /C "set __COMPAT_LAYER=RUNASINVOKER && start "" %1" 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. The reason why you are not allowed to make changes to some files is that they require admin privileges. Re: Editing Registry, No Access with Admin Rights Thanks for your help, and the info on the MsgBox, i've only ever used VB6 and that was a few years back, this is my first time using VB.net. If I am logged in as an administrator reg_editor.exe works great but if I am logged in as a normal user and right-click and select RunAs an administrator it doesn't work. By default setx sets the variable in the local environment (Under HKEY_Current_User Registry key). Similarly, you may not be able to execute all the commands at the command prompt if you not logged in as the admin. You must have local administrative permissions on the local machine in order to modify these registry settings. Start the command prompt as administrator on Windows 10, right click on Start menu and select Command Prompt(Admin). The rest of this post describes the step by step process on how to identify and match the SID with the account so that an administrator can view and/or edit user registry settings. Create the text file run-as-non-admin.bat containing the following code on your Desktop:. If you want to set the system variable (Under HKEY_LOCAL_MACHINE registry key), use the flag /m. The entry you have to edit is in HKEY_LOCAL_MACHINE, which you need administrative rights to edit. I normally have an admin account that has the administrative function on the PC but for some reason (probably me changing it) it has become a normal account. In the Permissions window that appears, click the “Advanced” button. I need to edit the "Current User" hive for users other than myself - the only way I can really do that is by doing what serialband suggested, ntuser.dat. The information will be the same for all the users, the env var just points to a customization file on the network that the users will update as necessary. This is a good defense mechanism unless it is not allowing you, the owner of the computer to make changes. For some asinine reason, this was dropped in … I have this PC with windows 10 on it. If your question is answered then mark your thread RESOLVED and give credit to whoever answered it. The Windows registry is a hassle to edit under normal circumstances, but sometimes you’ll encounter keys that are protected by the system. Edit the file to your liking and then return the hosts file to C:\Windows\System32\drivers\etc folder. When you try to add or edit … There are certain files and folders in Windows that you can only access when you are logged in as the administrator of that computer. sggaunt (Programmer) 23 Nov 04 03:16 I agree with hilfy, your program should be able to read the LOCAL_MACHINE keys but not write to them unless the user has supervisor rights. Or, if a user based GPO will allow the logged in user to write to that hive without running regedit..? How can I add an admin user to Windows 10 without an admin account?