By using this site, you acknowledge that you have read and understand our Cookie policy, Privacy policy and Terms .
close

Code snippets for various programming languages/frameworks.

rss_feed Subscribe RSS
access_time 8 months ago comment 0 languageEnglish

Environment variables are commonly used in many frameworks or programs.

In PowerShell, we can use Get-ChildItem cmdlet to retrieve all the environment variables.

You can also use Get-ChildItem Env:$VariableName to retrieve the value of certain environment variable.

Code snippet

Get-ChildItem Env:
Get-ChildItem Env:PATH
info Last modified by Raymond at 8 months ago
info About author

info License/Terms

Please log in or register to comment. account_circle Log in person_add Register
comment Comments (0)
No comments yet.