We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

about msdeploy "-setparam " ,to restore a websiteRSS

1 reply

Last post Apr 09, 2018 08:46 AM by Yuk Ding

  • about msdeploy "-setparam " ,to restore a website

    Apr 09, 2018 01:11 AM|keepcoffee|LINK

    Hi,my operation environment is IIS6 on windows server 2003.

    I use follow command line to package my site,and make the site name and site's physical path with parameters.

    msdeploy.exe -verb:sync -source:metakey=lm/w3svc/117880585 -dest:package=c:\dises.zip

    "dises" is my site name,and the above command executed with no error,and I can see the parameters I declare in the zip package.

    "117880585 " is my site ID.

    Next,I restore this package to another machine with the same operation environment(I use virtual machine software).

    the command as follows:

    msdeploy.exe -verb:sync -source:package=c:\dises.zip -dest:metakey=lm/w3svc/117880585

    yes,you can see that I changed the parameters value,"dises" to "disesaa", "C:\dises\Code\Web" to "C:\111\dises\Code\Web",for test purpose.

    But when execution finished,the site name and physical path didn't change.

    So,anything wrong?please help.

  • Re: about msdeploy "-setparam " ,to restore a website

    Apr 09, 2018 08:46 AM|Yuk Ding|LINK

    Hi keepcoffee

    To further help you about this issue, I am trying to invoke someone experienced to help look into this thread, this may take some time and as soon as we get any result, we will post back. 


    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.