I'm trying to figure out how to query for devices that does not have Microsoft Office Professional Plus 2019 installed. When I use this query,
InstalledSoftware | where (ProductName == 'Microsoft Office Professional Plus 2019 - en-us')
It finds all of the devices that have Office 2019 installed. But, when I try using something like,
InstalledSoftware | where (ProductName != 'Microsoft Office Professional Plus 2019 - en-us')
It lists all of the software that's not Office 2019 in each devices. What's the query syntax that shows me devices that does NOT have office 2019 installed?