Hi everyone,
I have this script that searches through a list on computers for the application Symantec.
$computers=get-content c:\houcomputer.txt
get-wmiobject -Class "Win32_Product" -CN $computers | where{$_.name -like "*symantec*"}
It works but the only issue I have is that is doesn't show the computer name, so it makes it hard to find out which computer has or not. What do I need to add to the script for it to show computer name on the output?
OUTPUT:
IdentifyingNumber : {C02FF081-3B1D-47BA-AA68-37D0EA4B75C5}
Name : Symantec Endpoint Protection
Vendor : Symantec Corporation
Version : 12.1.3001.165
Caption : Symantec Endpoint Protection