0

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#?

Gaotter
  • 1,746
  • 15
  • 32

1 Answers1

2

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#?

Community
  • 1
  • 1
Jan Jongboom
  • 26,598
  • 9
  • 83
  • 120