Windows 2008R2 Powershell v2.0
Original Path (as seen from Advanced System Settings/Environment Variables) is:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
From Powershell I run:
[Environment]::SetEnvironmentVariable("PATH", "$($env:path;C:\Temp", "Machine")
or
[Environment]::SetEnvironmentVariable("PATH", "$($([Environment]::GetEnvironmentVariable('PATH', 'MACHINE')));C:\Temp", "Machine")
Now my path (as seen from Advanced System Settings/Environment Variables) is:
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Temp
Is there a way to retrieve the existing path WITHOUT evaluating it so that I can retain the existing environment variables embedded in the original path?