diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-15 16:23:40 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-15 16:25:06 -0700 |
| commit | 49098fe55ddc82d5a66af1f175960d5165b0712d (patch) | |
| tree | 06d2edfcdc172592746a147e4722a716536312aa /toolsrc/src/vcpkg_System.cpp | |
| parent | fa4b4d48d9c8d37f8c11f03825cacffbc760e245 (diff) | |
| download | vcpkg-49098fe55ddc82d5a66af1f175960d5165b0712d.tar.gz vcpkg-49098fe55ddc82d5a66af1f175960d5165b0712d.zip | |
Add -NoProfile to powershell commands
Diffstat (limited to 'toolsrc/src/vcpkg_System.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg_System.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg_System.cpp b/toolsrc/src/vcpkg_System.cpp index 14a6f3a73..a4e78d90a 100644 --- a/toolsrc/src/vcpkg_System.cpp +++ b/toolsrc/src/vcpkg_System.cpp @@ -132,7 +132,7 @@ namespace vcpkg::System std::wstring create_powershell_script_cmd(const fs::path& script_path, const std::wstring& args) { // TODO: switch out ExecutionPolicy Bypass with "Remove Mark Of The Web" code and restore RemoteSigned - return Strings::wformat(LR"(powershell -ExecutionPolicy Bypass -Command "& {& '%s' %s}")", script_path.native(), args); + return Strings::wformat(LR"(powershell -NoProfile -ExecutionPolicy Bypass -Command "& {& '%s' %s}")", script_path.native(), args); } void print(const char* message) |
