PowerTip: Use Windows PowerShell to display all Environment variables

Doctor Scripto

Summary: Doctor Scripto demonstrates how to use env: to show all currently set environment variables

A picture containing scissors Description automatically generated

Question: Hey Doctor Scripto, I remember in DOS if I wanted to see the values of all the Environment variables; like TEMP I could just type the SET Command. How do I do this in PowerShell?

Answer: You can do this in one line using the env: PowerShell drive to display all of the currently set Environment variables.

dir env:

PowerShell, Doctor Scripto, PowerTip, Sean Kearney