How to List All Installed Programs in Windows via Command Line (winget, PowerShell & cmd)
Before reinstalling Windows, auditing office machines, or writing deployment scripts, it is handy to dump a clean list of every installed application to a text or CSV file. Linux makes this a one-liner (dpkg -l), and modern Windows 10/11 has equally clean command-line options.
Fastest method on Windows 10 and Windows 11: open Command Prompt or PowerShell and run winget list > apps.txt – Windows’ built-in package manager writes all installed apps and versions straight to a file.
Method 1. winget list (Windows 10 & 11)
Modern Windows builds include winget out of the box. Print the list or export it to your Desktop:
winget list # save to a text file: winget list > "%USERPROFILE%\Desktop\programs.txt"
Method 2. PowerShell (Complete 32- & 64-bit Registry Export)
If winget is unavailable (for example on Windows Server or LTSC), querying both the 64-bit and 32-bit (WOW6432Node) Uninstall registry keys in PowerShell is fast and exports cleanly to UTF-8 CSV:
Unlike legacy <code>wmic product get name</code> (which is slow, misses non-MSI apps, and is removed from Windows 11), reading the registry finishes in under a second and catches nearly everything.
<h2>Method 3. Classic Pure-cmd .bat Script (Windows 7 / 10)</h2>
If you need a plain batch script without PowerShell (adapted from <em>mozers</em>' script to save <code>list.txt</code> in the current folder):
[bash gutter="false">@ECHO OFF
CHCP 65001 > nul
TYPE nul > list.txt
SET UNINSTALL=HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall
FOR /f "tokens=7 delims=\" %%a IN ('reg query "%UNINSTALL%"') DO (
FOR /f "tokens=1,2,*" %%b IN ('reg query "%UNINSTALL%\%%a" ^| FIND /I "DisplayName"') DO (
ECHO %%d >> list.txt
)
)
On Windows 10/11 use CHCP 65001 for UTF-8 output (on legacy Windows 7 systems with Cyrillic names, CHCP 1251 or CHCP 866 works best).
For Comparison – Linux & FreeBSD
- Debian / Ubuntu:
apt list --installedordpkg --get-selections. - FreeBSD:
pkg info(older releases usedpkg_info).
Before wiping a workstation, I usually run the PowerShell CSV export – five minutes later you have a complete checklist so nothing important gets forgotten after a fresh install.
