Skip to content

Instantly share code, notes, and snippets.

@jimbrig
Created December 16, 2020 00:53
Show Gist options
  • Select an option

  • Save jimbrig/00c444d1c58f09d27e699907e3e957cf to your computer and use it in GitHub Desktop.

Select an option

Save jimbrig/00c444d1c58f09d27e699907e3e957cf to your computer and use it in GitHub Desktop.
[Get Installed Programs] #windows #dev
@echo off
REM Reference: http://www.techrepublic.com/forum/questions/101-215911/dos-command-to-list-all-installed-programs
echo ================= >>software_list.txt
reg export HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall temp1.txt
find "DisplayName" temp1.txt| find /V "ParentDisplayName" > temp2.txt
for /f "tokens=2,3 delims==" %%a in (temp2.txt) do (echo %%a >> software_list.txt)
del temp1.txt
del temp2.txt
REM type software_list.txt | more
echo.
echo.
echo Installed software are stored in software_list.txt
wmic && /output:C:\InstallList.txt product get name,version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment