Filtering get-wmiobject results

I'm looking to get a list of windows updates installed on a certain date. So far i found  powershell command that provides all updates now i'm trying to filter the results to display just the day in question. Here's what i have

provides list of all updates:  Get-WmiObject -class win32_quickfixengineering

I'm looking for just those installed on 10/24/2015. Here is the command i'm running but i'm not receiving any results nor am i receiving an error. I used "like" because the installedon field contains the time as well.

Get-WmiObject -class win32_quickfixengineering | where-object {$_.Installedon -like "10/24/2015"}
grahamcoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

footechCommented:
I'm not positive that that WMI class actually provides all updates (I think I remember a mention that it doesn't, but I'd have to search to find the answer), but anyway, for your Where-Object filter remember when you use -like and you should use the wildcard "*" in the matching string, otherwise it's the same as -eq.

Even better is if you use the WMI filter syntax, which is a little different, but will perform better (filtering further to the left is always better).
Get-WmiObject -class win32_quickfixengineering -filter "Installedon LIKE '10/24/2015%'"

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
grahamcoAuthor Commented:
I'm getting this error when running the command. I altered the date as i manually uninstalled the 10/24 updates after posting the question.

Get-WmiObject : Invalid query
At line:1 char:14
+ Get-WmiObject <<<<  -class win32_quickfixengineering -filter "Installedon -LIKE '3/12/2012%'"
    + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], ManagementException
    + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
footechCommented:
In the WMI filter, the operator is "LIKE" (case doesn't matter).  It doesn't have a dash in front of it as opposed to the PowerShell "-like" comparison operator.
grahamcoAuthor Commented:
that worked thank you but you were correct not all updates are being displayed. I see way more installed  when viewing them via add/remove programs. Is there another wmi class that i need to search to see those?
footechCommented:
From what I recall, no.  The most complete list can be had from that WMI query and the registry.  Check out the Technet Script Gallery - I'm pretty sure someone has already done this.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.