Output Environment Variable

Print environment variable to the console in PowerShell

commit 98c9de3 · authored · 1 min read

If you want to print the value of an environment variable, you can use the $env:variable_name syntax.

Terminal window
$env:MY_VARIABLE

Replace MY_VARIABLE with the name of the environment variable you want to print.

local graph · open full graph

"Output Environment Variable" is connected to the topics PowerShell. PowerShell #powershell Output Environment Variable

comments

loading discussion…