RocketScientist's Miscellaneous Ramblings
posts - 76, comments - 354, trackbacks - 3

IIS Admin n00b

This is something all you IIS admins are going to get a kick out of me not knowing already. The IIS Admin tool has a nifty-looking feature that lets you back up the configuration of a web site, and a tool that will allow you to load that configuration on another server. I thought this looked like an awesome idea. Here's the list of stuff it DOESN'T think is part of the web site when you back up the configuration: Any contained virtual directories Any contained virtual sites Any contained applications So basically if you have a website and use this tool to back up the configuration, it doesn't even get the job done half right. However, to compound the stupid, you can actually go through and back up and import every single one of those things by itself and it will import correctly. So they've got the code written to back up the configurations, it just DOESN'T WORK. bah.

Print | posted on Friday, November 11, 2005 1:44 PM |



# re: IIS Admin n00b

Just wondering, have you thought about exporting the configuration from the command line using IISCNFG? You can export the entire configuration for a particular site, including all virtual dirs, settings, etc. under it.

An example,

iiscnfg /export /f c:\ /sp /lm/w3svc/100001 /inherited /children

Where /LM/W3SVC/100001 is the site identifier. This can be found in the IIS -> Web Sites section under the column Identifier. The above command would export that config to the file ''. You would then be able to import the config from the command-line using the same tool. If you want to back-up and restore your metabase to another machine you can use /export then /import or you can try and do a direct /copy. You could also copy that single virtual to another box. I would recommend working with that command-line.

If you have any questions, I'd be happy to help you out.


11/11/2005 2:06 PM | Matt Baldwin

# re: IIS Admin n00b

Yeah. Same deal, they call the same API's methinks. it does a great job of exporting a particular path, but it doesn't seem to recurse, or do any settings other than the top level ones.

11/11/2005 3:35 PM | rocketscientist

# re: IIS Admin n00b

I haven't looked at the script, but my guess is it's using the WMI provider to do the actual export/import. I haven't seen an issue where I lose settings from one export to an import. I actually use the WMI provider to export the entier metabase, so /LM and import it to a set of target machines and haven't ran across this issue.

What settings are being lost?

11/11/2005 4:21 PM | Matt Baldwin

# re: IIS Admin n00b

Please sen me the configuration step
10/21/2006 10:17 PM | amit chandpurkar
Comments have been closed on this topic.

Powered by:
Powered By Subtext Powered By ASP.NET