I need to check if a list of software is installed or not. I don't want list of all software that is installed on the computer, Instead I want a list of only specific software and if it's installed or not. And if that software is not installed then it needs to be installed.
This is what I did, can anyone tell me how to proceed?
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* |
Select-Object DisplayName, DisplayVersion, Publisher, InstallDate |
Export-Csv C:"path"
This code is displaying the entire list of software that is installed on a computer. How can I customize it to show only the software that I want and how do I install a software if I find that it is not installed?