简体   繁体   中英

Setting user account in IIS 6.0 application pool

I'm creating a application pool in iis 6.0 using code, but haven't found a way of setting the user account in an application pool (default is network service). How do you set the user account that is going to be used in an application pool using C#?

You'll have to do an

InvokeSet("WAMUserName", new Object[] { "username" })

on the ApplicationPool instance

-edit: see this related question: How can I change the username/password of an ApplicationPool in IIS from C#?

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