get-hotfix didn't show exchange hotfix?

Chris 656 Reputation points
2021-08-19T17:48:47.5+00:00

hello all,

why didn't show get-hotfix all hotfixe?

PS C:\Users\sysadm> $wu_session = New-Object -COM "Microsoft.Update.Session"   
$wu_searcher = $wu_session.CreateUpdateSearcher()  
$wu_searcher.QueryHistory(0,10000) | Where-Object Title -like "*KB5004779*"  
  
PS C:\Users\sysadm> get-hotfix  
  
Source        Description      HotFixID      InstalledBy          InstalledOn                
------        -----------      --------      -----------          -----------                
ex        Update           KB5004752     NT AUTHORITY\SYSTEM  12.08.2021 00:00:00        
ex        Update           KB4049065     NT AUTHORITY\SYSTEM  02.02.2018 00:00:00        
ex        Update           KB4486129     ex\Administrator 04.12.2019 00:00:00        
ex        Security Update  KB4520724     NT AUTHORITY\SYSTEM  04.12.2019 00:00:00        
ex        Security Update  KB4535680     NT AUTHORITY\SYSTEM  15.01.2021 00:00:00        
ex        Security Update  KB4576750     NT AUTHORITY\SYSTEM  30.09.2020 00:00:00        
ex        Update           KB4589210     NT AUTHORITY\SYSTEM  11.03.2021 00:00:00        
ex        Security Update  KB4601392     NT AUTHORITY\SYSTEM  10.02.2021 00:00:00        
ex        Security Update  KB5001078     NT AUTHORITY\SYSTEM  26.02.2021 00:00:00        
ex        Security Update  KB5001402     NT AUTHORITY\SYSTEM  12.05.2021 00:00:00        
ex        Security Update  KB5005043     NT AUTHORITY\SYSTEM  12.08.2021 00:00:00       

124764-ex.png

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,627 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 47,596 Reputation points
    2021-08-19T18:53:31.323+00:00

    The Get-Hotfix cmdlet returns the same results as running "wmic qfe" from the command line. Both use WMI, and only include update made through the Component Based Servicing. get-hotfix-not-returning-all-installed-kbs.html

    To get the Windows Update or MSI stuff you need the code you showed in your 1st three lines of the code sample. To get all the updates, just change the value you're looking for to "*".

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Chris 656 Reputation points
    2021-08-20T16:49:52.06+00:00

    Hello Rich,

    this was my solution
    Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall*| Where-Object displayname -like "KB5004779"

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.