【发布时间】:2012-10-11 04:35:26
【问题描述】:
我正在尝试从 Powershell 中运行以下命令:
msdeploy -verb:sync -source:archiveDir=c:\KitchenPC\Build -dest:appHostConfig="KitchenPC",computerName=https://192.168.0.3:8172/msdeploy.axd,authType=Basic,userName=someuser,password="secret" -allowUntrusted
docs say 简单地将每个参数后的: 替换为=。所以我试过这个:
msdeploy -verb=sync -source=archiveDir=c:\KitchenPC\Build -dest=appHostConfig="KitchenPC",computerName=https://192.168.0.3:8172/msdeploy.axd,authType=Basic,userName=someuser,password="secret" -allowUntrusted
但是,我得到了错误:
错误:无法识别的参数 'computerName=https://192.168.0.3:8172/msdeploy.axd'。所有论据 必须以“-”开头。错误数:1。
我检查了docs on provider settings,但是他们没有提到它们等效的 Powershell 语法。
【问题讨论】:
标签: powershell msdeploy