Is it possible to list all environment variables from a Windows\' command prompt?
Something equivalent to PowerShell\'s gci env: (or ls e
gci env:
ls e
To list all environment variables in PowerShell:
Get-ChildItem Env:
Or as suggested by user797717 to avoid output truncation:
Get-ChildItem Env: | Format-Table -Wrap -AutoSize
Source: Creating and Modifying Environment Variables (Windows PowerShell Tip of the Week)