简体   繁体   中英

C# - Get elevated admin privileges?

Is there a way to get the highest privileges (SYSTEM/NT-AUTHORITY) for my C# win forms application? I am not talking about the normal administrator-privileges.

After I confirmed the UAC window I like to elevate myself to NT-AUTHORITY. Is that possible without using a service? Someone told me it can be accomplished by getting winlogon's Ttken And then start TrustedInstaller And duplicate it's token, then your program with highest availble privelleges. Does anyone have experience with this, or can tell me more about that topic? Thanks in advance.

You can impersonate a user on the local machine.

Check thislink for more information and code examples.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM