PowerShell: Environment Variable

By Xah Lee. Date: . Last updated: .

This page is a tutorial on using PowerShell to view or set environment variables.

For introduction on Microsoft Windows Environment Variables, see: Windows Environment Variable Tutorial .

Session Environment Variable

Change to environment variable in current session is temporary. Once you exit shell, the changes are gone.

Environment Variable in Registry

Change to environment variable in the registry is permanent.

PowerShell: Environment Variable