How to Start/Stop the Default Web Site and any Application Pool of the IIS7 programmatically in C#?
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#.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With