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

GNS3: Notes

As usual, notes is for myself and might be useful and also save time for beginners start using GNS3 .

Debian: Install NASM - The Netwide Assembler

sudo apt install nasm Check NASM Version nasm -v Find out more about NASM at https://nasm.us/doc/nasmdoc0.html

Linux: compound commands

command1 ; command2 ; command3 command1 is executed, then command2, and then command3 command1 && command2 && command3 command2 is executed only if command1 run successfully (exit code is 0), command3 is executed only if command2 run successfully (exit code is 0) command1 || command2 || command3 command2 is executed only if command1 exit code is 0 (failure), command3 is executed only if command2 exit code is 0 (failure)