Hello,
I was using this command:
or$lastpatch = (get-hotfix -computername $hostname | select InstalledOn | Sort-Object installedon -Descending | Select-Object -first 1).installedon;
PS C:\Windows\system32> get-hotfix -computername SOPCPCWS1 | select InstalledOn | Sort-Object installedon -Descending |
Select-Object -first 1
InstalledOn
1/24/2021 12:00:00 AM
and I tried also
> Get-wmiobject -class win32_quickfixengineering | Sort InstalledOn
Samething the KN890830 is not listed and as is the last windows updates is incorrect!!!
But I noticed that the "Windows Malicious Software Removal Too x64 - v5.96 (KB890830) is not detected as it is not a hotfix ...
how to get the last "windows updates" run through powershell? (including the KB890830)
Thanks,
Dom
