Discussion Locked

Is there a way to automate the creation

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I manage IIS on approximately 300 machines that are running on NT4. I usually have to create new virtual directories/sites on all these boxes. Is there a way that I can automate this process? Any help will be appreciated.
Thanks.

7 replies

by shmaltz

I think it's done thru the registry. So you can right a script that adds those registry enteries.

by joseph moore

HKLM\System\CurrentControlSet\Services\W3SVC\Parameters\Virtual Roots

That is where in the Registry, you will find all virtual directories.
I would do this: open Regedit on a IIS box that has all of the virtual directories you need.
Go to that hive location.
Export this Registry piece (click Registry -> Export Registry File)
Then go to another IIS box, copy the exported file onto it, and double-click it.

Hope this helps.

by dc1

in the admin scripts folder there are VBscripts that will automate the creation of VDs. Also plenty of examples on msdn.microsoft.com

This discussion is closed to new replies.