Created
October 2, 2012 00:36
-
-
Save originalmind/3815479 to your computer and use it in GitHub Desktop.
Powershell command causing msdepsvc crash
This file contains hidden or 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
$webDeployArgs = '-verb:sync -retryAttempts:10 -retryInterval:2000 -source:runCommand="%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -inputformat none -file ' + $SERVER_INSTALL_PATH + 'srv_configure_staff_site.ps1",dontUseCommandExe=true,waitInterval=10000,waitAttempts=6 -dest:auto,computerName=' + $deployServer | |
Start-Process "$Env:SystemDrive\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -ArgumentList $webDeployArgs -NoNewWindow -Wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment