<\/div>\n<\/aside>\n\n
“Warning Win32_Product is not query optimized. Queries such as “select * from Win32_Product where (name like ‘Sniffer%’)” require WMI to use the MSI provider to enumerate all of the installed products and then parse the full list sequentially to handle the “where” clause. This process also initiates a consistency check of packages installed, verifying and repairing the install. With an account with only user privileges, as the user account may not have access to quite a few locations, may cause delay in application launch and an event 11708 stating an installation failure. For more information, see KB Article 794524.”<\/p>","upvoteCount":2,"datePublished":"2024-02-27T11:49:33.000Z","url":"https://community.spiceworks.com/t/get-wmiobject-diffrent-result-remote-vs-locally/967661/2","author":{"@type":"Person","name":"Evan7191","url":"https://community.spiceworks.com/u/Evan7191"}},{"@type":"Answer","text":"
Querying CIM Class Win32_Product causes a potential repair on every returned program name. I recommend never querying that.<\/p>","upvoteCount":3,"datePublished":"2024-02-27T11:50:32.000Z","url":"https://community.spiceworks.com/t/get-wmiobject-diffrent-result-remote-vs-locally/967661/3","author":{"@type":"Person","name":"adminofthings","url":"https://community.spiceworks.com/u/adminofthings"}},{"@type":"Answer","text":"
Thanks, get-package did the trick, it does also pull all the msu’s which aren’t usefull for my querie but those are filtered out easy enough.
\nNot sure if this is going to work when my colleague does it remote yet, I’ll let you know if that gives the same result as when I do it locally.<\/p>","upvoteCount":0,"datePublished":"2024-02-27T13:37:33.000Z","url":"https://community.spiceworks.com/t/get-wmiobject-diffrent-result-remote-vs-locally/967661/4","author":{"@type":"Person","name":"maxvaneden","url":"https://community.spiceworks.com/u/maxvaneden"}},{"@type":"Answer","text":"
Update:<\/p>\n
I marked the question as answered to soon I’m afraid as I have some follow up questions
<\/p>\n
When done remotely it gives a different outcome, some applications are missing (local I have less rows then remotely) and remotely it sees applications I don’t see locally (IE remotely it sees a bunch of Citrix installs but not the Baramundi management) and also for a lot (if not most) the versions vary from the local query to the remote one.<\/p>\n
Anyone any thought?<\/p>","upvoteCount":0,"datePublished":"2024-02-27T13:59:02.000Z","url":"https://community.spiceworks.com/t/get-wmiobject-diffrent-result-remote-vs-locally/967661/5","author":{"@type":"Person","name":"maxvaneden","url":"https://community.spiceworks.com/u/maxvaneden"}},{"@type":"Answer","text":"
what do you mean it gives differet result? Can you provide more details/<\/p>","upvoteCount":2,"datePublished":"2024-02-27T14:40:25.000Z","url":"https://community.spiceworks.com/t/get-wmiobject-diffrent-result-remote-vs-locally/967661/6","author":{"@type":"Person","name":"DoctorDNS","url":"https://community.spiceworks.com/u/DoctorDNS"}},{"@type":"Answer","text":"
You can run “remote” commands against your own computer with Invoke-Command. You can enter the name of your computer or period/dot to specify local host. You can use that to test for yourself and verify the result, because the Get-Package command shoukd retirn the same result regardless of whether it was run remotely or locally.<\/p>","upvoteCount":1,"datePublished":"2024-02-27T16:40:02.000Z","url":"https://community.spiceworks.com/t/get-wmiobject-diffrent-result-remote-vs-locally/967661/7","author":{"@type":"Person","name":"Evan7191","url":"https://community.spiceworks.com/u/Evan7191"}},{"@type":"Answer","text":"