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
711,268 times
Add to favorites
Windows Update
E-mail Twitter Digg Facebook
Sign in to ask a question

  • PSWindowsUpdate
    1 Posts | Last post January 13, 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
  • External tools like WuInstall
    1 Posts | Last post December 19, 2018
    • I am not so great at scripting but I consider using a command line tool for searching and installing updates via command line / simple powershell scripts - stumbled over WuInstall ( - does any one of you have any experience with that one, is it useful for production environments?
      Or do you recommend to powershell-script it ourselves as opposed to external tools?
  • What does D mean in the status?
    1 Posts | Last post December 03, 2018
    • Hi, when I run Get-WindowsUpdate, it lists the available updates. One of them lists:
      What does that mean?
      Thank you
  • The Ultimate Treatment of Addiction
    2 Posts | Last post December 01, 2018
  • Get-WUHistory
    1 Posts | Last post December 01, 2018
    • When I run command Get-WUHistory it takes about 4 seconds for the prompt to come back but it does not display any info? 
      Get-WUServiceManager returns True for Windows Server Update Service
      We use Configuration Manager for patching. 
  • This is deprecated!!
    1 Posts | Last post September 14, 2018
    • Why is there no link to the 2018 versions of PSWindowsUpdate?
      This is an old version. Can we retire this page and redirect to the other site?
  • [US-TV]!! Arizona vs Houston 2018 Live Stream NCAAF Game Watch College Football Online Web HD TV Telecast
    1 Posts | Last post September 08, 2018
    • Arizona vs Houston Live Natives natives co uk Videos Events 5 hours ago Arizona vs Houston Live video on Natives Houston vs Arizona Live Score Today 
      watch live:
      Houston vs Arizona Live Stream Free Houston vs Arizona Arizona Wildcats vs Houston Cougars  Live score updates TV   oregonlive com sports index ssf arizona wildcats vs houston co html 10 hours ago Kevin Sumlin and the Arizona Wildcats look to rebound from a Week 1 loss to BYU with a road trip to Houston to take on the Cougars Saturday Arizona vs Houston  5 Houston to watch Arizona Desert Swar  azdesertswarm com arizona vs houston 5 cougars to watch wildcats ol 2 days ago After a rough 28 23 opening loss to BYU the Arizona Wildcats head to Texas for a 9 a m MST kickoff against the Houston Cougars Despite their status as a Group of 5 team Houston has plenty of talented players on their roster and they beat Arizona in Tucson last year albeit Arizona vs Houston live TV Channel Facebook  facebook com events 261277584717122 azdesertswarmcomarizona vs houston 5 cougars to watch wildcats ol 2 days ago After a rough 28 23 opening loss to BYU the Arizona Wildcats head to Classifieds (Watch LIVE)Arizona Wildcats vs Houston Cougars Live   discoverweyburn com 4551 watch live arizona wildcats vs houston c 45 mins ago Arizona Wildcats vs Houston Cougars  Live score updates TV channel how to watch live stream Arizona vs Houston  5 Houston to watch Classifieds Arizona Wildcats vs Houston Cougars Live S
  • Integrating PSWindowsUpdate with DSC
    2 Posts | Last post August 23, 2018
    • Crossposted from where there is more information. 
      I created a custom Desired State Configuration resource module that utilizes PSWindowsUpdate version 1.4.x and it has worked well for over a year now. I wanted to take advantage of the new features in version, but I am running into a strange error that I hope someone can help me with. 
      Here is my DSC code:
      As you can see from the code, the Test phase runs Get-WUList and will return false if updates are found. The Set phase runs Get-WUInstall -Install –AcceptAll –IgnoreReboot -Verbose.
      The error occurs during the Set phase. In my example log below, the module finds 2 updates in the pre search criteria and 2 updates in the post search criteria. The module is able to accept both updates, but only downloads and installs one of the updates, which is expected. After the one update gets installed (it really does get installed), this error shows:
      A command that prompts the user failed because the host program or the command type does not support user interaction. 
      Try a host program that supports user interaction, such as the Windows PowerShell Console or Windows PowerShell ISE, 
      and remove prompt-related commands from command types that do not support user interaction, such as Windows PowerShell 
          + CategoryInfo          : NotImplemented: (:) [], CimException
          + FullyQualifiedErrorId : HostFunctionNotImplemented,PSWindowsUpdate.GetWindowsUpdate
          + PSComputerName        :
      The little bit of research I've done suggests that the Get-WUInstall command is prompting for user input or maybe write-host is called somewhere in the code after the update is installed. Since this version of the module is a compiled DLL, I can't check the code to troubleshoot it, hence why I'm asking here. I'm hoping the original author or one of the maintainers can help me troubleshoot this issue
    • I ran into this as well just this week while creating a custom DSC resource for patching.  The module is definitely asking for user input.  You can replicate it by running Get-WURebootStatus when the machine is pending a reboot.  I found the trick was to find what commands check for reboots and then silencing their output.  Below are the commands I've found so far that needed this and the argument(s) that allow them to run in DSC: 
      Get-WURebootStatus -Silent
      Install-WUUpdate -IgnoreReboot
      Get-WUinstall -Install -IgnoreReboot
  • Update a VHD
    1 Posts | Last post August 21, 2018
    • Hello all,
      I would like to use this module on a vhd file. Do you think it's possible ?
      Example : 
      $mountedVHD = Mount-VHD –Path c:\myVM.vhdx
      Get-Wuinstall $mountedVHD 
      Thank you for your help.
  • Access is denied error.... on remote PC
    1 Posts | Last post August 17, 2018
    • error....
      Install-WindowsUpdate –MicrosoftUpdate -Verbose -Category 'Critical Up
      dates', 'security updates' -IgnoreReboot –AcceptAll
      VERBOSE: Accepted [12] Updates ready to Download
      Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
          + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], UnauthorizedAccessException
          + FullyQualifiedErrorId : System.UnauthorizedAccessException,PSWindowsUpdate.GetWindowsUpdate
1 - 10 of 324 Items