Link to home
Start Free TrialLog in
Avatar of Defianse
DefianseFlag for Canada

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?
Avatar of shalabhsharma
shalabhsharma
Flag of India image

Try web developnet tool with Web Deployment Tool it is easier to manage, deploy, and migrate  web servers.

    * 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
ASKER CERTIFIED SOLUTION
Avatar of shalabhsharma
shalabhsharma
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Stephan
Stephan
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
"website.Site" is the name of your website, you can edit this aswell
Avatar of Defianse

ASKER

I know I only asked for help with scripting but the C# code is a huge and welcome bonus!