Skip to content

Instantly share code, notes, and snippets.

@originalmind
Created October 2, 2012 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save originalmind/3815479 to your computer and use it in GitHub Desktop.
Save originalmind/3815479 to your computer and use it in GitHub Desktop.
Powershell command causing msdepsvc crash
$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