Impersonation in .NET with Process.Start and UAC

I'm trying to run programs from another .NET program that needs to be upgraded using the Process.Start (System.Diagnostics) impersonation option. The person to impersonate is the local administrator. O / S - 2008, and UAC is included. When you invoke the startup process, I get a Win32 permission error:

"The requested operation requires height"

+3
windows-server-2008 uac elevation
source share
2 answers

If the .NET application that you are calling is correctly configured in app.manifest, you do not need to specify anything in the Process.Start call - the UAC will be displayed automatically.

setting app.manifest:

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> 
+5
source share

All Articles