Skip to main content

Windows: Get local environment variables

Using Powershell

Get-ChildItem Env:

Do not forget colon (":") after Env.

Powershell: Get local environment variables
Powershell: Get local environment variables
Get a specific local variable, such as Path, ComputerName...
Get-ChildItem Env:Path | Format-List

Remember to add " | Format-List" to display full result.
Get Path local environment variable
Get Path local environment variable

Using Command Prompt

Just type SET without any parameters to display all the current environment variables.
Command Prompt: Get local environment variables
Command Prompt: Get local environment variables

Popular posts from this blog

Windows 10: Install SuSE Linux Enterprise - SLES

With Microsoft-Windows-Subsystem-Linux feature enabled, we can install Linux distributions on Windows 10.

Java: error - could not find or load main class

Java Error: Could not find or load main class Java: Common mistake of beginners

Install Microsoft .NET Core SDK

.NET Core Software Development Kit (SDK) is a set of libraries and tools that allow developers to create .NET Core applications and libraries.