Folks,
Big problem that I'm not sure how to address. Seems that Win7 SP1 broke my application. My scenario used to work!
I have a Win C# .NET 4.0 application with a manifest that requests administrative privileges via app.manifest line:
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
I also am starting a new thread in my application via the following lines of code:
Process certMaker = new Process();
certMaker.StartInfo.FileName = makeCertExe;
certMaker.StartInfo.UseShellExecute = false;
certMaker.StartInfo.RedirectStandardOutput = true;
certMaker.Start();
certMaker.WaitForExit();
This used to work no problems, but now it no longer runs under elevated privileges. Just to be sure, I've decorated the method with:
[PrincipalPermission(SecurityAction.Demand, Role = @"BUILTIN\Administrators")]
but am only getting a "Request for principal permission failed" error.
Any help? What has changed in SP1 that could'ev caused this? Our application is not signed yet due to high costs.
I tried to have UAC off or ON at any level, I trued to set compatibility mode set from XP through Win7 and nothing.
I've enabled full audit reports for any sorts of security failures in the OS. Here is what I think I'm getting everytime I try to run my command:
A handle to an object was requested.
Subject:
Security ID: LOCAL SERVICE
Account Name: LOCAL SERVICE
Account Domain: NT AUTHORITY
Logon ID: 0x3e5
Object:
Object Server: PlugPlayManager
Object Type: Security
Object Name: PlugPlaySecurityObject
Handle ID: 0x0
Process Information:
Process ID: 0x2dc
Process Name: C:\Windows\System32\svchost.exe
Access Request Information:
Transaction ID: {00000000-0000-0000-0000-000000000000}
Accesses: Unknown specific access (bit 1)
Access Reasons: -
Access Mask: 0x2
Privileges Used for Access Check: -
Restricted SID Count: 0
Thank you!