Copying a WebSite in IIS 5
IIS 6 was a heck of a product. I particularly like the ability to backup / import individual sites, and the xml based metabase. Unfortunately every once in a while I need to do the same thing in IIS 5. Like when I need to copy the metabase settings from an IIS 5 production server to a IIS 5 dev server to reproduce a bug. Doing this by hand is tedious at best, so I wrote a utility that uses ADSI to scan through the metabase of one server, and copy those entries onto another server. This may be a marginally useful thing with IIS 7 on the way, but I figured I would put it out there in case it would help anyone.
Another nice feature, it *should* work to copy in between IIS 5 & 6, and probably 7. So this might be a nice way to migrate sites to a new version of IIS.
Cheers,
Brent
Attachment(s): AdsiCopy.zip