Cut and Paste Virtual Directories

  • Section(s): Network
  • Published on Sep 06, 2005.
  • Last Modified on Sep 06, 2005.
  • Last Modified by Mitch Tulloch.
  • Rated 4.3 out of 5 based on 4 votes.
It would be nice if one could cut and paste a virtual directory from one IIS website to another.

It would be nice if one could cut and paste a virtual directory from one IIS website to another. Unfortunately the IIS 6 GUI just isn't that capable. But there is an easy way to copy a virtual directory from one site to another on the same IIS web server:

  1. Right-click on the virtual directory in the original website and select Save Configuration To File. This will save the portion of the XML metabase that contains the configuration info for the vdir.
  2. Right-click on the target website and select New |  Virtual Directory From File, specify the previously saved XML file, click Read File, select the file to import, and click Ok.

Another way is to use the Iiscnfg.vbs script to export the vdir from the old site and import it into the new one.

About Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see www.mtit.com .


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred Anti Spam Hardware solution?

Follow TechGenix on Twitter