This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cmd コマンド例: | |
msdeploy -verb:sync -source:metakey=/lm/w3svc/1 -dest:metakey=/lm/w3svc/2 -verbose | |
# PowerShell コマンド例: | |
.\msdeploy.exe -verb=sync -source=metakey=/lm/w3svc/1 -dest=metakey=/lm/w3svc/2 -verbose | |
もう少し本格的なコマンドで見てみましょう。 | |
# cmd コマンド例: | |
"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package="C:\パッケージパス\パッケージ.zip" -dest:auto,computerName="http://対象ホストIP/MSDeployAgentService",userName="配置管理者ユーザー",password="配置管理者パスワード",includeAcls="False" -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"C:\パラメーターxmlパス/パラメータ.xml" | |
# PowerShell コマンド例: | |
$packagepath = "C:\パッケージパス" | |
$parameterxml = "C:\パラメータxml" | |
$hostip = "対象ホストIPAddress" | |
$user = "配置管理者ユーザー" | |
$pass = "配置管理者パスワード" | |
."C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb=sync -source=package="$packagepath" "-dest=auto,computerName=""http://$hostip/MSDeployAgentService"",userName=""$user"",password=""$pass"",includeAcls=""False""" -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"$parameterxml" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment