我正在尝试运行以下命令并尝试传递参数和哈希表,但它不起作用:
msdeploy.exe -verb:sync -source:metakey=lm/w3svc/1 -dest:package=C:\iis_backups\site1.zip,encryptPassword=xyxyz > C:\iis_backups\site1.log
答案 0 :(得分:0)
此前已经回答过:Running msdeploy.exe from within Powershell
您的方案的解决方案如下所示:
msdeploy.exe '-verb:sync' '-source:metakey=lm/w3svc/1' '-dest:package=C:\iis_backups\site1.zip,encryptPassword=xyxyz' > C:\iis_backups\site1.log