Output Environment Variable

Print environment variable to the console in PowerShell

Edson Frainlar
Edson FrainlarJuly 25, 2022 · 1 min read · Last Updated:

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


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

This page is open source. Noticed a typo? Or something unclear?
Improve this page on GitHub

Edson Frainlar

Written byEdson Frainlar
Mission-driven Full-stack Developer with a passion for developing KTern, Dev Collaboration, and teaching. Curious to explore Quantum Information and Computing.

Is this page helpful?

Related StoriesView All