mercedakias
mercedakias

Reputation: 73

How to Start/Stop Default Web Site and Application Pools in IIS7 programmatically

How to Start/Stop the Default Web Site and any Application Pool of the IIS7 programmatically in C#?

Upvotes: 6

Views: 2459

Answers (2)

Hans Olsson
Hans Olsson

Reputation: 55001

This sounds like something that you'd want to use WMI for. THe IIsWebServer class would probably be a good place to start looking, you can find documentation for that here. And here's a codeproject article for stopping and starting sites in C#.

Upvotes: 2

Related Questions