简体   繁体   中英

Start process as administrator from IIS

I need to start a process (.exe console application) as Administrator user from a WCF Service hosted in IIS7 (Windows Server 2008). How can get this?

thank you, Riccardo

I'm not sure about a WCF service in IIS, however for a basic website, you click on the site (in inetmgr IIS7) and under the IIS section there is an icon called Authentication. Then there are several options in the main box like Anonymous Authentication, etc. Select one and then on the right side hit the edit button. You can specify the user you want the site to execute with. You could select your admin account if you really wanted to.

Again, this is for an IIS website, not WCF service.

Like some of the other commentators say though, giving it a full admin account isn't the right way to go though. I'd create a limited user account w/ the bare minimum privileges.

Just setting the application identity of the pool (in the advanced settings). This is not the final solution, but for now it works.

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