On Wed, Jan 24, 2018 at 3:16 PM, Michael B. Smith <mich...@smithcons.com> wrote:
> It seems likely. If you can identify the particular update. > > Well, they *all* show no InstalledOn date ... PS P:\software\PHA Scripts> Get-WMIObject -Class Win32_QuickFixEngineering -ComputerName DCTRIAS001 -Filter "HotFixID != 'File 1'" Source Description HotFixID InstalledBy InstalledOn ------ ----------- -------- ----------- ----------- DCTRIAS001 {AC860B17-... DCTRIAS001 Update KB971513 S-1-5-21-77247872... DCTRIAS001 Update KB971512 S-1-5-21-77247872... DCTRIAS001 Update 944036 S-1-5-21-77247872... Here's an example of what the above is returning, I'm not getting hardly any useful data ... Description : Update FixComments : HotFixID : KB968930 InstallDate : InstalledBy : S-1-5-21-173682997-1056865346-324618207-500 InstalledOn : Name : ServicePackInEffect : Status : Maybe it's something different because it's Win 2008 (not R2)?? > > > *From:* listsad...@lists.myitforum.com [mailto:listsadmin@lists. > myitforum.com] *On Behalf Of *Michael Leone > *Sent:* Wednesday, January 24, 2018 3:08 PM > *To:* powershell@lists.myitforum.com > *Subject:* Re: [powershell] Can't get WMI info from Win 2008 (not R2) > > > > On Wed, Jan 24, 2018 at 2:49 PM, Michael B. Smith <mich...@smithcons.com> > wrote: > > There is a corrupt InstalledOn property. > > > > > > OK, that sounds reasonable ... and how does one fix something like that, > do you suppose? Uninstall that specific update (if possible), and > re-install? > > > > > > > > > > *From:* listsad...@lists.myitforum.com [mailto:listsadmin@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> > 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? > > > > > > > > > > > > > > > >