Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
This is a bit simular as my previous question, but I think I need another approach.

I have a app that can connect to other pc's on the company network. For now I can connect to their explorer as an admin without any dialog asking for my credentials.
But now I want to be able to import their registry into my registry with admin rights so (read/write).

So i need to open the regedit.exe as an Administrator.

I want to open it without the UAC popping up.

Does someone know how to do this?

What I have tried:

I've already tried to use a Manifest, but then i get the UAC when the app starts.
And with the Impersonate class doesn't work either.
Posted
Updated 6-Apr-17 3:57am
Comments
[no name] 6-Apr-17 9:42am    
https://www.google.com/search?q=c%23+reading+remote+registry

1 solution

You cannot elevate a process to Admin privilege without UAC: that's the whole idea.
And if you could - which you can't - we wouldn't tell you how to do it, as it would render access control meaningless which would only benefit hackers, ransomware writers, and such like low life scum.

We do not condone, support, or assist in the production of malicious code in any way, form, or manner. This is a professional site for professional developers.
 
Share this answer
 
Comments
daviddelombaerde 7-Apr-17 2:02am    
And what is your problem?

I have an admin account and an normal user account. I'm only asking how I can elavate my App that is started up on my user account. So i can open my regedit with my admin account so I can acces the other registry on the network computers.

F.
OriginalGriff 7-Apr-17 2:27am    
And you can't do that without UAC - because it's a user account.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900