Varun Patel
Varun Patel

Reputation: 79

Can I change registry permission through cmd

Is there any way to change the registry permission through cmd directly. I am developing an application and want registry access. I don't want the user to know about the back end process. And the user can't get administrator rights every time. So once the application run as administrator, the permission should be changed.

Upvotes: 2

Views: 257

Answers (2)

ice13berg
ice13berg

Reputation: 713

Depending on what exactly you're trying to do, the REG command allows command-line registry manipulation, including adding, exporting, querying or importing entries.

Upvotes: 1

Code Maverick
Code Maverick

Reputation: 20415

I use PsExec and run my registry commands via a reg file. You can impersonate the user if they are a local admin or as a user that has remote registry access.

Upvotes: 1

Related Questions