Windows maintains a set of environmental variables. Some, but not all, can be seen via the env: PowerShell drive Get-ChildItem -Path env: You can also use WMI to see some of the variables Get-WmiObject -Class Win32_Environment | ft Name, VariableValue Read More...
Read the complete post at http://msmvps.com/blogs/richardsiddaway/archive/2012/05/13/scripting-games-2012-comments-16-reading-environmental-variables.aspx
May 13 2012, 12:24 PM
Richard Siddaway's Blog