mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
If we keep TMP, when run as 'system' user it is using Windows\Temp folder.
This commit is contained in:
parent
abb7f546de
commit
32ee6c96ce
@ -1,6 +1,6 @@
|
||||
# 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
|
||||
$specialEnvironmentMap = @{ "SystemDrive"=$env:SystemDrive; "SystemRoot"=$env:SystemRoot; "UserProfile"=$env:UserProfile; "TMP"=$env:TMP } # These are built-in and not set in the registry
|
||||
$machineEnvironmentMap = [Environment]::GetEnvironmentVariables('Machine') # HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
|
||||
$userEnvironmentMap = [Environment]::GetEnvironmentVariables('User') # HKEY_CURRENT_USER\Environment
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user