Using Powershell
Get-ChildItem Env:
Do not forget colon (":") after Env.
![]() |
| Powershell: Get local environment variables |
Get a specific local variable, such as Path, ComputerName...
Remember to add " | Format-List" to display full result.
Get-ChildItem Env:Path | Format-ListRemember to add " | Format-List" to display full result.
![]() |
| 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 |


