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

Ping group on Windows with FOR command

Notes from daily work situation.

Powershell: Test-NetConnection

PS C:\Users\tuyen> get-help Test-NetConnection NAME     Test-NetConnection SYNTAX     Test-NetConnection [[-ComputerName] <string>] [-TraceRoute] [-Hops <int>] [-InformationLevel {Quiet |     Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] [-CommonTCPPort] {HTTP | RDP | SMB | WINRM}     [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -Port <int> [-InformationLevel {Quiet | Detailed}]     [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -DiagnoseRouting [-ConstrainSourceAddress <string>]     [-ConstrainInterface <uint32>] [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>] ALIASES     TNC REMARKS     Get-Help cannot find the Help files fo...

Data Recovery Softwares

Follow 3-2-1 backup rule so you do not need these data recovery softwares.