How can I copy/clone a site on iis7

后端 未结 4 1703
时光取名叫无心
时光取名叫无心 2021-02-05 00:04

I want to make a dev, demo1, demo2 copy of the iis website I\'m working on. I need each iis to run off its own code base, but the settings will be almost identical. Is there an

4条回答
  •  孤独总比滥情好
    2021-02-05 00:21

    How about copying the website using adsutil.vbs?

    C:\Inetpub\AdminScripts> adsutil.vbs copy  
    

    for example

    C:\Inetpub\AdminScripts> adsutil.vbs copy w3svc/1 w3svc/556
    

    The reason for the w3svc/ notation is more obvious if you execute adsutil.vbs ENUM /P W3SVC first.

    References:

    • http://randomtype.ca/blog/how-to-create-multiple-websites-in-iis6-on-windows-xp/
    • http://blogs.iis.net/rakkimk/archive/2008/11/20/adsutil-vbs-copying-a-website.aspx

提交回复
热议问题