Can I start / stop the application pool or website in IIS programmatically?

I am trying to find a way to stop, start, restart / redesign websites and application pools from a web interface on a single server. Ideally, this would be something that I could do with .NET without having to run shell commands.

(I see that other related questions have been asked, but I do not want to do this from the command line if necessary).

I need to do this for both IIS6 and IIS7.

+3
source share
2 answers

WMI ( Windows). WMI IIS msdn. WMI , IIS #. System.Management - .

, , , WMI- .NET , - .NET, .

+2

Source: https://habr.com/ru/post/1712955/


All Articles