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.

342,405 times
Add to favorites
Windows Update
E-mail Twitter Digg Facebook
Sign in to ask a question

  • Error 0x800F902 when using get-wuinstall
    1 Posts | Last post September 01, 2016
    • Hi,
      When I download and update a bunch of updates with the following command, I always get at least 2-3 updates failed withe error 0x800F902. If I try to download and update them individually using KB parameter, they run OK. Did someone come across the same issue? Here is the command I am trying to use. By the way I am using task scheduler to run the Powershell script. 
      get-wuinstall -MicrosoftUpdate -Acceptall -Ignorereboot
      Your advise will be really helpful.
  • Typo in code
    1 Posts | Last post August 22, 2016
    • When running the command "Get-WUHistory" there is a typo in the word "history" that displays at the top on the green background:
      "Get update histry for ..."
      It should say:
      "Get update history for ..."
  • PSWindowsUpdate and DSC
    1 Posts | Last post August 18, 2016
    • I am trying to get the PSWindowsUpdate Module to work inside a DSC Configuration where Im looking to call Get-WUInstall to install windows updates on a freshly deployed VM.
      Im using the Script Resource but i cant seem to get the script to pull the correct True value in the Test Script. Below is the Test Function in the Script Configuration
                      TestScript = {
      		$GetUpdates = Get-WUList
      		if ($GetUpdates -ne $null) 
      		return $true } 
      		return $false }
      So if WU-List provides updates the script should return true and run the SetScript - issue is when i run the above in PowerShell it works as expected, if i run in Start-DSCConfiguration it returns false and the SETScript is never run.
      Has anyone tried to get PSWindowsUpdates to work in a DSC configuration?
      Thanks again for this great script!
  • -Type failing
    2 Posts | Last post August 02, 2016
    • So I do infact need to install some specific KP fixes that are not included in the normal update and so I tried to use 
      $KBList = "KB890830", "KB2533552", "KB2539636" (subbed my own in here)
      Get-WUInstall -Type "Software" -KBArticleID $KBList -AcceptAll
      method but I get a failure saying that -Type is not valid
      Did I miss something?
    • '-Type' does not appear to be a valid parameter for the 'Get-WUInstall' command anymore. It may have been for an older version of the module, but it looks like it may have been removed at some point and the examples were not updated to reflect the change.
  • Ignore Optional?
    3 Posts | Last post July 27, 2016
    • I'm looking to, on a new build, install all available updates other than optional. After poking around I found that optional updates can be found using the BrowseOnly field. Is there a way to exclude these? I found this: and I now get an 'O' in the status column from Get-WUList, but I can't figure out if there is a way to filter based on that. 
      Any help would be appreciated. 
    • I THINK I figured it out with this: 
          Get-WUInstall -MicrosoftUpdate -Criteria "IsInstalled = 0 AND BrowseOnly = 0 AND IsHidden = 0"
    • v1.4.7 - Added AutoSelectOnly param for automatic accept only 'important' updates, ie those which have the status AutoSelectOnWebsites = true.
  • Install only required updates?
    2 Posts | Last post July 27, 2016
    • First off, thanks for the module!
      Second - Is there a way to install only required updates? (not optional ones)
      Thanks again for your work!
    • v1.4.7 - Added AutoSelectOnly param for automatic accept only 'important' updates, ie those which have the status AutoSelectOnWebsites = true.
      Found my answer :)
  • Getting Microsoft updates information from remote machies.
    1 Posts | Last post July 25, 2016
    • Hi Michal,
      This script is very useful for me.
      i am not able to fetch remote machines microsoft updates inforamtion.
      $Script = {ipmo PSWindowsUpdate; Get-WUList -MicrosoftUpdate}
      Invoke-WUInstall -ComputerName ServerFQDN -Script $Script
      I am getting an error like 
      Update-WUModule : Cannot process argument transformation on parameter 'LocalPSWUSource'. Cannot convert value to type System.String.
  • Does this work in Windows 10
    1 Posts | Last post July 06, 2016
    • I have been using this in windows 8 but have not got in working in windows 10. Does it work in windows 10?
  • Install already downloaded updates?
    1 Posts | Last post June 14, 2016
    • Is there a way you can use this script to install updates that are already downloaded to the client? GPO is set to download updates from WSUS, I would like to just install the updates that have been downloaded. Skip the check & download, just install.
      Thanks in advance.
  • Is it work with Windows 2012 R2
    2 Posts | Last post June 03, 2016
    • Is it work with Windows 2012 R2?
    • Yes.  I use it all the time on 2012 R2.
11 - 20 of 227 Items