get-hotfix not working

又旻 葉 1 Reputation point
2021-06-16T07:18:41.57+00:00

I tried to use get-hotfix, but there is always no response on the list.

106096-get-hotfix.jpg

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,522 questions
0 comments No comments
{count} votes

9 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 14,051 Reputation points MVP
    2021-06-16T08:46:33.437+00:00

    Hi @又旻 葉

    Thank You for in Q & A forum.

    You question is already answered in forum, refer to the below url.

    Get-WmiObject -Class "win32_quickfixengineering"  
    

    https://learn.microsoft.com/en-us/answers/questions/191945/get-hotfix-not-returning-all-installed-kbs.html

    If the Answer is helpful, please click Accept Answer and up-vote, this can be beneficial to other community members.

    0 comments No comments

  2. Ian Xue 36,751 Reputation points Microsoft Vendor
    2021-06-16T08:56:54.12+00:00

    Hi,

    Get-HotFix returns only the quick-fix engineering (QFE) updates. Please see if this returns anything.

    Get-WmiObject -Class Win32_QuickFixEngineering  
    

    If you want to list all kinds of update you could try this

    $Session = New-Object -ComObject "Microsoft.Update.Session"  
    $Searcher = $Session.CreateUpdateSearcher()  
    $historyCount = $Searcher.GetTotalHistoryCount()  
    $Searcher.QueryHistory(0, $historyCount) | Select-Object Title, Date  
    

    https://social.technet.microsoft.com/wiki/contents/articles/4197.windows-how-to-list-all-of-the-windows-and-software-updates-applied-to-a-computer.aspx

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. 又旻 葉 1 Reputation point
    2021-06-16T09:19:09.69+00:00

    I have tried all of these methods, and I still haven't been able to solve them.

    Thanks for answering!

    0 comments No comments

  4. lddj90 36 Reputation points
    2021-06-16T09:28:21.733+00:00

    What does your Update History show in the System Settings? Are there any hotfixes listened?

    0 comments No comments

  5. 又旻 葉 1 Reputation point
    2021-06-16T09:35:00.337+00:00

    I tried the following two operations:
    wmic qfe list

    Get-WmiObject -Class "win32_quickfixengineering"

    106201-get-hotfix-2.jpg

    I never got a response.

    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.