diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-27 22:08:07 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-27 22:08:07 -0800 |
| commit | 6c0f3a8859718b87b017ee9458cf0e4adacdd2dd (patch) | |
| tree | fd9cd6b2b1a497f134c75c531ad97b7c3cc71111 /scripts | |
| parent | c835db39e8c3201383a1e0e3b5dcea41afd68165 (diff) | |
| download | vcpkg-6c0f3a8859718b87b017ee9458cf0e4adacdd2dd.tar.gz vcpkg-6c0f3a8859718b87b017ee9458cf0e4adacdd2dd.zip | |
[ClearEnvironment] Fix registry comments
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/VcpkgPowershellUtils-ClearEnvironment.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/VcpkgPowershellUtils-ClearEnvironment.ps1 b/scripts/VcpkgPowershellUtils-ClearEnvironment.ps1 index 5c922572b..0a133f5f8 100644 --- a/scripts/VcpkgPowershellUtils-ClearEnvironment.ps1 +++ b/scripts/VcpkgPowershellUtils-ClearEnvironment.ps1 @@ -1,8 +1,8 @@ # Capture environment variables for the System and User. Also add some special/built-in variables. # These will be used to synthesize a clean environment $specialEnvironmentMap = @{ "SystemDrive"=$env:SystemDrive; "SystemRoot"=$env:SystemRoot; "UserProfile"=$env:UserProfile } # These are built-in and not set in the registry -$machineEnvironmentMap = [Environment]::GetEnvironmentVariables('Machine') # HKEY_CURRENT_USER\Environment -$userEnvironmentMap = [Environment]::GetEnvironmentVariables('User') # HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment +$machineEnvironmentMap = [Environment]::GetEnvironmentVariables('Machine') # HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment +$userEnvironmentMap = [Environment]::GetEnvironmentVariables('User') # HKEY_CURRENT_USER\Environment # Identify the keySet of environment variable names $nameSet = ($specialEnvironmentMap.Keys + $machineEnvironmentMap.Keys + $userEnvironmentMap.Keys) | Sort-Object | Select-Object -Unique |
