Skip to content

Instantly share code, notes, and snippets.

@MaxMelcher
Last active December 20, 2015 02:59
Show Gist options
  • Save MaxMelcher/6060649 to your computer and use it in GitHub Desktop.
Save MaxMelcher/6060649 to your computer and use it in GitHub Desktop.
SharePoint Solution Deployer with Powershell version 2 but installed is version 3 (SP2010 does not like that)
GOTO LAUNCHSCRIPT
:LAUNCHSCRIPT
"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe -Version 2 -NoExit" -Command Start-Process "$PSHOME\powershell.exe -Version 2 -NoExit" -Verb RunAs -ArgumentList "'%~dp0\Scripts\SPSD_Main.ps1 -Command %command% -Type %type% -Verbosity %verbosity% %saveEnvXml%'"
ENDLOCAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment