🖥️ Batch (CMD)

Get Environment Variables Report (Batch)

Uses wmic to list Environment Variables (Win32_Environment) straight from the command line.

By WindowsScripting.com · 312 B
GetEnvironmentReport.bat
@echo off
:: ============================================================
:: GetEnvironmentReport.bat
::
:: Reports Environment Variables via WMI (Win32_Environment).
:: ============================================================

wmic path Win32_Environment get Name,VariableValue,UserName /format:table

pause