how to grant privilage to windows 10 local account/user to execute .reg

Nair Ajith 0 Reputation points
2024-04-11T09:55:19.6+00:00

Hello Everyone,

I am not able to run .reg script in regedit as a local account/user. But only by granting Administrator privilege.

How can I grant privilege to local account/user to execute .reg script without administrator privilege?

Best Regards

Ajith

Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Marcin Policht 51,365 Reputation points MVP Volunteer Moderator
    2024-04-11T10:17:17.42+00:00

    Set the registry permissions on the target keys to that account

    Details at

    https://learn.microsoft.com/en-us/troubleshoot/windows-client/application-management/change-registry-values-permissions

    and

    https://learn.microsoft.com/en-us/answers/questions/809520/how-to-give-permission-to-a-registry-key-for-a-use


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

  2. Anonymous
    2024-04-15T04:41:50.85+00:00

    Hi Nair,

    Thanks for your post. General speaking, a Windows program may ask you for administrator permissions when it starts if:

    1. The program needs to access a system directory or a file for which the NTFS permissions have not been granted to non-privileged users;
    2. If the program was compiled with a special flag that requires elevation at startup (requireAdministrator).

    In the first case, all that is required to solve the problem is to grant the RW or Full Control user permissions to the program directory or the required system directory/file. For example, a program stores its files (logs, configuration files, etc.) in its own folder in C:\Program Files (x86)\SomeApp or some system directory. The user must have permission to write to these files for the program to work correctly. In order for this program to work normally, administrator permissions are required.

    To allow the program to run as a non-admin user, it is sufficient to manually grant the user (or the built-in Users group) the permission to modify/write a file/directory at the NTFS file system level. You can right click and select properties->Security->double click the permissions->add the user and give the modify and write permission.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.