I would like to write a service that does some IIS management tasks for me, like creating virtual directories or adding new applications.
Is it possible to do some management of IIS by a C# application or WCF service.
To start IIS Manager from the Run dialog boxOn the Start menu, click All Programs, click Accessories, and then click Run. In the Open box, type inetmgr and then click OK.
To enable remote connections and allow connections from Windows users and IIS Manager users: In IIS Manager, in the Connections pane, click the server node in the tree. Double-click Management Service to open the Management Service feature page. Select the Enable remote connections check-box.
It looks like you can use the Microsoft.Web.Administration api to do most tasks with IIS 7+. Would that meet your requirements?
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