From e9b0de9d689560bfde4ebb73a6d76a0c3440a9ef Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Thu, 25 Jan 2018 17:27:43 -0800 Subject: Add -NoProfile and -ExecutionPolicy Bypass in powershell call --- scripts/VcpkgPowershellUtils.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3