1

I am trying to run the following command and have tried passing arguments and hash tables but it did not work:

msdeploy.exe -verb:sync -source:metakey=lm/w3svc/1 -dest:package=C:\iis_backups\site1.zip,encryptPassword=xyxyz > C:\iis_backups\site1.log
Mark Wragg
  • 22,105
  • 7
  • 39
  • 68
smit
  • 23
  • 3
  • 1
    Define `did not work` - what are you expecting it to do, and what is it doing instead. If you get an error message, please include the full message. – RB. Mar 08 '17 at 16:19

1 Answers1

0

This has been answered before here: Running msdeploy.exe from within Powershell

It appears the solution for your scenario is as follows:

msdeploy.exe '-verb:sync' '-source:metakey=lm/w3svc/1' '-dest:package=C:\iis_backups\site1.zip,encryptPassword=xyxyz' > C:\iis_backups\site1.log
Community
  • 1
  • 1
Mark Wragg
  • 22,105
  • 7
  • 39
  • 68