There is a corrupt InstalledOn property.

From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On 
Behalf Of Michael Leone
Sent: Wednesday, January 24, 2018 8:41 AM
To: powershell@lists.myitforum.com
Subject: Re: [powershell] Can't get WMI info from Win 2008 (not R2)

On Tue, Jan 23, 2018 at 4:57 PM, Michael B. Smith 
<mich...@smithcons.com<mailto:mich...@smithcons.com>> wrote:
Does it work when executed directly on that one host?


From my workstation, this works:

Get-WMIObject -Class Win32_QuickFixEngineering -ComputerName $computer -Filter 
"HotFixID != 'File 1'"

I do get a list of the applied updates.

This does not:

Get-WMIObject -Class Win32_QuickFixEngineering -ComputerName $computer -Filter 
"HotFixID != 'File 1'"| ? {$_.InstalledON} |sort InstalledOn | select -last 1

I get nothing. Yet that same command works on 100+ other hosts ...

--------------------
This same command works locally, I get the latest update applied, and the 
InstalledOn, exactly as expected.

Get-WMIObject -Class Win32_QuickFixEngineering -ComputerName $computer -Filter 
"HotFixID != 'File 1'"| ? {$_.InstalledON} |sort InstalledOn | select -last 1


So why can I remotely get the list of applied updates, but the sort and 
selection part does not ? On just this one host?





Reply via email to