How to manage IIS from C#?

.net, c#, iis-7

Solution

It looks like you can use the Microsoft.Web.Administration api to do most tasks with IIS 7+. Would that meet your requirements?

Problem

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.

Original source