Get-InstalledUpdates - List all installed updates and hotfixes

This function provides the ability to list both installed updates and hotfixes by using PowerShell remoting.So note that PowerShell remoting is a requirement and has to be enabled in your environment.You can compare the installed updates and/or hotfixes through the code in the se

2.6 Star
9,898 times
Add to favorites
Operating System
E-mail Twitter Digg Facebook
Sign in to ask a question

  • Script progress
    1 Posts | Last post April 25, 2019
    • Hello,
      Could you please help me on the below case? :)
      I have a script, which pulled the latest installed hotfixes from some target machines.
      (The list of machines are stored in a Machines.txt and I used the following command to run the script >Get-Content Machines.txt | Get-InstalledUpdates)
      The script works perfectly, but I'd like to see the current progress (Where the script running at the moment. I mean on which machine)
      If I put: Write-Host -Object "Getting data from the machine..."
      I am able to see this message line-by-line when the script moving on each machines. 
      Is it possible to see the actual machine name where the script running instead of this "Getting data from the machine..." ?
      Thank you for the help :)
  • Is their a Powershell script for all updates?
    1 Posts | Last post October 18, 2016
    • Is their a Powershell script to list all the updates installed on the Win10 PC you are running the script on?
      Monthly I need to check various PC's to see what updates have been pushed to it.
  • InstalledOn and InstalledBy
    1 Posts | Last post April 04, 2016
    • Can we add the installation date when we run the script ?
  • variable $server1 is null
    1 Posts | Last post August 26, 2014
    • after run the command "$server1 = $AllUpdates | Where-Object {$_.PSComputerName -eq '2012pc'} | select -ExpandProperty KB -Unique "
      i check the variable $server1,but i got null,no KB information
  • can not get update from remote server
    2 Posts | Last post August 26, 2014
    • after run the follow command,i got some can not connect the remoter server which computer name is rf.
      Get update from local server "2012pc" is successfully
      Two server are in the same domain and the firewall has turned off
      PS C:\Windows\system32> $AllUpdates = Get-InstalledUpdates -ComputerName '2012pc','rf'
      New-PSSession : [rf] Connecting to remote server rf failed with the following error message : The client cannot
      connect to the destination specified in the request. Verify that the service on the destination is running and is
      accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most
      commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to
      analyze and configure the WinRM service: "winrm quickconfig". For more information, see the
      about_Remote_Troubleshooting Help topic.
      At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSWindowsUpdate\Get-InstalledUpdates.ps1:65 char:16
      +     $Session = New-PSSession -ComputerName $ComputerName
      +                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
          + FullyQualifiedErrorId : CannotConnect,PSSessionOpenFailed
    • i resolved the problem.thanks