Hi We can manage IIS using c# code, it's a good option to automate our modifications on the IIS servers. A great and inspiring code by Robbe Morris for that can be found here . Here's in brief - how to manage the IIS: using System.DirectoryServices; // of course ... How to connect IIS: DirectoryEntry iisServer = new DirectoryEntry("IIS://" + myServerName + "/W3SVC/1"); How to manage virtual directories: Get root of virtual directories (the web site): DirectoryEntry folderRoot...