I am trying to list some of software installed on a PC by using:
Get-WmiObject -Class Win32_Product |
Select-Object -Property name,version |
Where-Object {$_.name -like '*Java*'}
It works, but when I added more names in Where-Object it gave me no results neither an error.
Get-WmiObject -Class Win32_Product |
Select-Object -Property name,version |
Where-Object {$_.name -like '*Java*','*python*','*adobe*','*access*'}
Why does it only work with one name?