aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-01-25 17:27:43 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2018-01-25 17:27:43 -0800
commite9b0de9d689560bfde4ebb73a6d76a0c3440a9ef (patch)
tree7c04cb171df3c73ee0b9e5dcd91d5c6ac693d5a6 /scripts
parent186a2cf88baa88be7385dd3381748e80432e5261 (diff)
downloadvcpkg-e9b0de9d689560bfde4ebb73a6d76a0c3440a9ef.tar.gz
vcpkg-e9b0de9d689560bfde4ebb73a6d76a0c3440a9ef.zip
Add -NoProfile and -ExecutionPolicy Bypass in powershell call
Diffstat (limited to 'scripts')
-rw-r--r--scripts/VcpkgPowershellUtils.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/VcpkgPowershellUtils.ps1 b/scripts/VcpkgPowershellUtils.ps1
index 06fc458f7..63da1a508 100644
--- a/scripts/VcpkgPowershellUtils.ps1
+++ b/scripts/VcpkgPowershellUtils.ps1
@@ -188,7 +188,7 @@ function vcpkgInvokeCommandClean()
$command = "& `"$cleanEnvScript`"; & `"$executable`" $arguments"
$bytes = [System.Text.Encoding]::Unicode.GetBytes($command)
$encodedCommand = [Convert]::ToBase64String($bytes)
- $arg = "-encodedCommand $encodedCommand"
+ $arg = "-NoProfile -ExecutionPolicy Bypass -encodedCommand $encodedCommand"
$process = Start-Process -FilePath powershell.exe -ArgumentList $arg -PassThru -NoNewWindow
Wait-Process -InputObject $process