Windows Update PowerShell Module

This function is a piece of PSWindowsUpdate module to manage Windows Update on a computer system running Windows. Whole module contain set of functions to check, download and install updates from PowerShell.

 
 
 
 
 
4.6 Star
(352)
720,051 times
Add to favorites
Windows Update
4/4/2017
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • The update could not be uninstalled because..
    1 Posts | Last post June 26, 2019
    • I am getting the following error when I try to remove KB's. 
      
      PS C:\windows\system32> Uninstall-WindowsUpdate -KBArticleID KB4462223 -Confirm:$false -Verbose
      VERBOSE: Performing the operation "(6/25/2019 2:04:59 PM) Remove (WUApi) Windows Update: Security Update for
       Microsoft Office 2010 (KB4462223) 32-Bit Edition" on target "OEM1211".
      WARNING: Exception from HRESULT: 0x80240028. The update could not be uninstalled because the request did not
       originate from a WSUS server.
      
      
      
      All of my Updates have came down via Windows update (No WSUS).
      
      Anybody seen this issue?
      
      PSwindowsupdate 2.1.1.2
  • 1.) Why update not listed when using PSWindowsUpdate? / 2.) Filter for a specific update using PSWindowsUpdate?
    3 Posts | Last post May 25, 2019
    • Hi,
      
      I’ve seen that OEMs like HP are also offering BIOS updates within the Microsoft Update Catalog.
      In my example I’m using a HP EliteBook 840 G5 which contains the BIOS version 01.04.00 (=not the latest).
      
      This BIOS version 01.04.00 and the latest one 01.06.00 is also available within the Microsoft Update Catalog,
      when using either the hardware ID of the firmware (=BIOS) listed under Windows Device Manager (“Firmware” -> “System Firmware” -> “Properties” -> “Details” -> “Hardware Ids”) or the so called family ROM name “Q78” as a search term:
      - Search term hardware ID (“854bef26-b844-4f03-8e09-b64b4b1ee21e”)”: https://www.catalog.update.microsoft.com/Search.aspx?q=854bef26-b844-4f03-8e09-b64b4b1ee21e
      - Search term family ROM name (“Q78”): https://www.catalog.update.microsoft.com/Search.aspx?q=Q78
      
      I want to use the Powershell module PSWindowsUpdate (https://www.powershellgallery.com/packages/PSWindowsUpdate/) for downloading a specific update,
      like this latest BIOS version 01.06.00  for the HP EliteBook 840 G5 from the Microsoft Update Catalog.
      However, if I use one of the following commands it’s not listed at all despite the HP EliteBook 840 G5 unit still contains the older BIOS version 01.04.00:
      Get-WUInstall -MicrosoftUpdate
      Get-WUList -MicrosoftUpdate
      
      
      Here the complete list of commands I’ve used to install the module PSWindowsUpdate,
      before using one of the two commands mentioned above (also see the following tutorial: https://www.petri.com/manage-windows-updates-with-powershell-module):
      Install-Module -Name PSWindowsUpdate
      Set-ExecutionPolicy RemoteSigned
      Import-Module PSWindowsUpdate
      Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d
      
      So 1st question specific to this update is, why it’s not listed when using PSWindowsUpdate at all?
      And the 2nd one, how to filter for a specific update using PSWindowsUpdate if it doesn’t contain a KB (parameter –KBArticleID)?
      
      
      
      Thanks and best regards
    • Not really an answer, but I'm trying to use the latest version of this module and sometimes it just doesn't find all the updates. 
      Most recently, there is an KB update for 1809, to prepare WU for 1903 - it's called Cumulative Update... - can't remember the KB number, sorry. And the module won't find it. 
      What's interesting, if you manually search for updates in normal W10 interface, it will show and start downloading. And then if you run the module, it will suddenly find that update...
    • KB4497934 it is IIRC
  • newest version
    1 Posts | Last post May 09, 2019
    • Is it possible to display a link to the newest version here
      
      https://www.powershellgallery.com/packages/PSWindowsUpdate/2.1.1.2
      
      Thanks
  • invoke-wuinstall : the term 'invoke-wuinstall' is not recognized
    1 Posts | Last post May 08, 2019
    • I have imported the PSwindowsupdate module, but when try to access the invoke-wuinstall module i am getting its not a recognized command. Can you please help on this? 
  • Feature update 1803 downloads but doesn't install?
    1 Posts | Last post May 08, 2019
    • I am having an issue with PSWindowsUpdate where it'll download the 1803 feature update, says its installing it, reboots, and when I run pswindowsupdate again, it says all updates installed.
      
      However, if I then go to the regular GUI version of Windows update, Windows update will say that feature update 1803 is available for download, it'll download it and install it, eventhough pswindowsupdate says it installed, and no more updates were available.
      
      Anyone else having this issue?  Tried different versions of pswindowsupdate and it persists on all of them.
  • Remote Windows Update
    1 Posts | Last post April 25, 2019
    • Can we push this commands from remote server to download and install updates on servers. I mean can we run this scripts from remote to push to remote servers for download and install update.
      
  • Remote Windows Update
    1 Posts | Last post April 25, 2019
    • Hi,
      
      Can we push the commands from remote server to set the servers to download and install update on the servers.
      
      
  • Module incompatible in PowerShell 6.2
    1 Posts | Last post April 24, 2019
    • Hi,
      It seems this module is not compatible with powershell 6.2.0 Core (tested on server 2016 and 2019)
      
      PS C:\Windows\system32> get-windowsupdate
      get-windowsupdate : The type initializer for '<Module>' threw an exception.
      At line:1 char:1
      + get-windowsupdate
      + ~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], TypeInitializationException
      + FullyQualifiedErrorId : System.TypeInitializationException,PSWindowsUpdate.GetWindowsUpdate
      
      The module works fine in powershell 5.1 on the same servers.
      
  • Windows Update Reboot Issue
    1 Posts | Last post April 06, 2019
    • Hi,
      
      I have got a problem related to Get-WUInstall function. I found sometimes windows updates require the system to reboot multiple times. I use 
      Get-WUInstall –MicrosoftUpdate –AcceptAll –AutoReboot command to automatically upgrade system and reboot if it's required. Will this command continue to update windows OS after each reboot? If it does not, how can I handle this situation?
  • PSWindowsUpdate
    5 Posts | Last post April 05, 2019
    • Processing seems to stop at the very beginnig : "Connecting to Windows Update server. please wait...'
      
      I suppose, this nice script may need to get verified by some programmer with a lot more skills than me ;p
    • Hello, I'm also getting this. Been trying to find a solution...
    • same here...
    • same problem even with latest https://www.powershellgallery.com/packages/PSWindowsUpdate/2.1.1.1
    • We got update from MS they released one KB kb4489920 which fix this issue.
1 - 10 of 340 Items