Defianse
asked on
Move IIS web site using script
I would like to move an existing iis website to another location/folder on the same server. Does anyone know how this would be possible using a script?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
"website.Site" is the name of your website, you can edit this aswell
ASKER
I know I only asked for help with scripting but the C# code is a huge and welcome bonus!
* Ability to synchronize or migrate the entire Web server, or a single Web site or application.
* Synchronizes only data that has changed.
* Ability to detect missing dependencies during synchronization.
* Automatically gathers the following when you sync a Web site:
o Content
o IIS configuration
o Certificates
o Registry keys
o ASP.NET configuration
* Use a secure service (server administrators only, can be secured with HTTPS, etc.) to synchronize the machines.
http://learn.iis.net/page.aspx/715/use-the-web-deployment-tool