question

60381028 avatar image
0 Votes"
60381028 asked lddj90 answered

get-hotfix not working

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


106096-get-hotfix.jpg


windows-server-powershell
get-hotfix.jpg (11.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

learn2skills avatar image
0 Votes"
learn2skills answered

Hi @60381028

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://docs.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.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

IanXue-MSFT avatar image
0 Votes"
IanXue-MSFT answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

60381028 avatar image
0 Votes"
60381028 answered

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

Thanks for answering!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

lddj90 avatar image
0 Votes"
lddj90 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

60381028 avatar image
0 Votes"
60381028 answered

I tried the following two operations:
wmic qfe list

Get-WmiObject -Class "win32_quickfixengineering"

106201-get-hotfix-2.jpg

I never got a response.



get-hotfix-2.jpg (35.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

lddj90 avatar image
0 Votes"
lddj90 answered

You can try to run this script in Power Shell ISE

     $Session = New-Object -ComObject "Microsoft.Update.Session"
      $Searcher = $Session.CreateUpdateSearcher()
            
      $historyCount = $Searcher.GetTotalHistoryCount()
            
      $Searcher.QueryHistory(0, $historyCount) | Select-Object Title, Description, Date,
            
          @{name="Operation"; expression={switch($_.operation){
            
              1 {"Installation"}; 2 {"Uninstallation"}; 3 {"Other"}
            
      }}}
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

60381028 avatar image
0 Votes"
60381028 answered IanXue-MSFT commented

HI IDJ90-4393 :

      I tried it, but still no response
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Have you checked the update history in Windows Update? Are the updates listed there?

0 Votes 0 ·
lddj90 avatar image
0 Votes"
lddj90 answered FrankYeh-1785 commented

What does your Update History show in the System Settings? Are there any hotfixes listened? Settings -> Update and Security -> Show Update History. Please add a screenshot here,

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

111909-update.jpg




hi lddj90 picture is upload

0 Votes 0 ·
update.jpg (126.4 KiB)
lddj90 avatar image
0 Votes"
lddj90 answered

Alright. Seems there are updates installed. Are you using WSUS to deploy updates? If so compare the KB installed on your sytsem with them deployed by WSUS. Are all of them there?

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

"This Powershell script did the trick and showed all hotfixes. It's the same output as Settings (new) -> Updates and Security -> Update History"




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.