nauman zafar
nauman zafar

Reputation: 25

Getting Specific Value Of Registry Key in CMD

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

enter image description here

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

Answers (1)

Magoo
Magoo

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

Related Questions