Reputation: 25
I am trying to list all the programs installed via cmd and i am using registry key for this purpose. RegistryKey
is as follows
REG QUERY HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall /s > \"C:\Users\Kosmo\Final.txt"
it lists saves the list in a file as following
As it lists all the software complete information but what can i do to have only few of the properties e.g only DispalyName
or Publisher etc ?
What would be the syntax for the key then?
Upvotes: 0
Views: 216
Reputation: 80203
REG QUERY HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall /s | findstr /L "DisplayName Publisher"> \"C:\Users\Kosmo\Final.txt"
add /i
to /L
(ie /L /i
) if you want case-insensitive.
Upvotes: 1