Here is another, but it returns more data than I want...

Can I do a WHERE clause that contains OR?? Where Name="this" or name="that"?

 Code:
$objWMI = GetObject("winmgmts:\\.\root\CIMV2")
$colItems = $objWMI.ExecQuery("SELECT * FROM Win32_Product WHERE Name Like 'Microsoft Office%'")
        
For Each $objItem In $colItems
        ? '1 '+ $objItem.Name
        ? '2 '+ $objItem.InstallLocation
        ? '3 '+ $objItem.Version
        ? '4 '+ $objItem.IdentifyingNumber
	?
    Next
_________________________
How to ask questions the smart way <-----------> Before you ask