How to start / stop default website and application pools in IIS7 programmatically

How to start / stop the default website and any IIS7 application pool programmatically in C #?

+6
c # iis-7 default
source share
2 answers

This is similar to what you want to use WMI. The IIsWebServer class is likely to be a good place to search, you can find documentation for this here . And here is the codeproject article for stopping and starting sites in C #.

+2
source share
+1
source share

All Articles