Created
December 16, 2020 00:53
-
-
Save jimbrig/00c444d1c58f09d27e699907e3e957cf to your computer and use it in GitHub Desktop.
[Get Installed Programs] #windows #dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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