diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-06 16:47:50 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-06 16:54:19 -0700 |
| commit | bb7cccc2acbcd8e5b7a4d20a1ba8bc27146f96d1 (patch) | |
| tree | 588ab0f102e71ac0499d99a2d3c6ff921fd441e0 | |
| parent | e7ad48b0b85d1116f00379e61d3ceb1f58016fdb (diff) | |
| download | vcpkg-bb7cccc2acbcd8e5b7a4d20a1ba8bc27146f96d1.tar.gz vcpkg-bb7cccc2acbcd8e5b7a4d20a1ba8bc27146f96d1.zip | |
Add System32\Wbem to the whitelisted environment
Solves vcvarsall.bat not being able to find wmic.exe
| -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 6bb941d82..ec8284e33 100644 --- a/toolsrc/src/vcpkg_System.cpp +++ b/toolsrc/src/vcpkg_System.cpp @@ -18,7 +18,7 @@ namespace vcpkg::System { static const std::wstring system_root = get_environmental_variable(L"SystemRoot").value_or_exit(VCPKG_LINE_INFO); static const std::wstring system_32 = system_root + LR"(\system32)"; - static const std::wstring new_PATH = Strings::wformat(LR"(Path=%s;%s;%s\WindowsPowerShell\v1.0\)", system_32, system_root, system_32); + static const std::wstring new_PATH = Strings::wformat(LR"(Path=%s;%s;%s\Wbem;%s\WindowsPowerShell\v1.0\)", system_32, system_root, system_32, system_32); std::vector<std::wstring> env_wstrings = { |
