I was trying to figure out how I can write an application to deploy IIS configurations for multiple WebServers. Web configurations will be taken from the same environment and then restored to one or more web servers. I tried the DirectroyServices API from .NET to manage IIS. I wanted to export all the configurations and import them into another physical WebServer with the same version of IIS. Virtual directories are allowed in which, but not all of its parameters have been restored. For example, security properties with passwords set.
From what I found around, it looks like the DirectoryServices API for IIS does not implement all the necessary functions. I managed to disconnect the AppCMD application from my application. What I didn't like about this was that I had to use a remote execution tool to remotely execute a batch script package that takes care of restoring and backing up IIS.
Is there a better way to do this? I looked at PowerShell to see if I could write a script to do what I needed, but wondered if the same script could work for IIS 6 and IIS 7?
Thanks in advance for any input!
source
share