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
(358)
734,100 times
Add to favorites
Windows Update
4/4/2017
E-mail Twitter del.icio.us Digg Facebook
  • Exclude updates with no KB
    1 Posts | Last post September 29, 2017
    • I'm running a script that installs updates on a schedule and I'd like to exclude any update that doesn't have a KB ID (usually drivers - Server 2012 R2).
      
      I've tried:
      Get-WUInstall -IsHidden:$false -AcceptAll -IgnoreReboot -Verbose | Where {$_.KB -ne ""}
      but this still install these updates.
      
      Is there any way I can do this?
      
      Thanks
  • Remote errors with Get-WUInstall
    1 Posts | Last post September 27, 2017
    • I have a question posted on stack exchange.  Would you mind taking a look?  THank you so much. 
      https://stackoverflow.com/questions/46457625/using-get-wuinstall-on-remote-machines-access-denied
  • Exclude Optional
    5 Posts | Last post September 27, 2017
    • In my testing I cannot get this to exclude optional updates. Categorically they are Updates just like normal updates. Running Get-WUInstall -AcceptAll -IgnoreReboot included the update "July, 2017 Preview of Quality Rollup for .NET Framework". Obviously I don't want a preview to be installed on a production server. I can't find a good way to exclude it because it's category was Updates, and it's severity was Moderate. So how can I identify these optionals?
    • Try adding the switch -nottitle 'preview' 
    • That would eliminate only the updates with preview in the title. There are other updates that are normally marked as optional that still be included.
    • After having a look at this, excluding the phrase preview looks the only way, or filter out the updates category 
    • Filtering out updates seems like a bad way to do it since it would eliminate updates.
  • Downloading Updates... Size Displayed is Incorrect
    1 Posts | Last post September 13, 2017
    • When performing the update download, the progress bar is incorrectly reporting the size of the previous downloaded update.  It appears that it's using the size of the last found update and not modifying it for each update as it downloads.  For example if I have 3 updates (11 MB, 1 GB and 144 MB), the download progress bar shows the correct update name but always report the size of 144 MB (the last one in the list).  Hopefully this is an easy fix.  Thanks!
      
  • Registry key not updated after Install
    2 Posts | Last post September 11, 2017
    • Hi,
      I'm using Get-WUInstall since a couple months ago and I've just noticed that the registry key "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\AutoUpdate\Results\Install"  were not updated.
      I build reports based on the value of this key.
      Did I miss something? Is it a normal behavior?
      Any Ideas?
      Thx
    • Please, some help.
  • Source code
    1 Posts | Last post September 01, 2017
    • I'd like to be able to contribute to some of the cmdlets. Please could you publish the code to github or similar? I noticed there is already a fork there, https://github.com/joeypiccola/PSWindowsUpdate, with some enhancements, and there's a chocolatey package which allows specific (but old) versions of the module to be depended on (https://chocolatey.org/packages/pswindowsupdate).
      
      It would be wonderful to get the canonical source code published.
  • Add-WUOfflineSync : Value does not fall within the expected range.
    1 Posts | Last post August 28, 2017
    • Trying to add an offline sync catalog so that I can scan for needed updates on a machine that cannot connect with the internet.  Getting the following error.  Machine is Windows 10.  Can you help?
      
      Add-WUOfflineSync : Value does not fall within the expected range.
      At line:1 char:1
      + Add-WUOfflineSync -Path D:\WUOfflineSync\wsusscn2.cab
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
          + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Add-WUOfflineSync
  • Not Hiding Specified Updates
    1 Posts | Last post August 18, 2017
    • I am trying to hide all updates with the words Skype, Visio, OneNote, and OneDrive in the title. I have tried:
      
      Hide-WUUpdate -Title "Skype" -Confirm:$false
      Etc.
      Etc.
      Etc.
      
      However, when I then run Get-WUList -MicrosoftUpdate, it is still showing updates from all of the above. (Although it does appear to hide some of the updates, but not all of them.) 
      
      I have also tried specifying the KBArticlID, but this doesn't work either.
      
      Any ideas?
  • Only display Title, KB, and Status with Get-WUList
    3 Posts | Last post August 18, 2017
    • Can anyone advise me on how to only display the Title, KB and Status of available updates when running Get-WUList? Currently, on my W10 machine it outputs a ton of unnecessary information. I just like a basic list. Thanks.
    • Get-WUList | Select Title, KB, Status
    • Thanks.That was easy enough haha. I thought I had previously tried Get-WUList | Select Title earlier and it through an error, but I must have been imagining that because your suggestion works perfectly. 
  • Just a suggestion
    1 Posts | Last post August 12, 2017
    • When the connection to Windows Update Server (or Windows Server Update Server or MIcrosoft Update Server) is for some reason not possible (no network connection of computer running PSWindowsupdate, WSUS down etc.) no error message is displayed, even if Get-WUInstall ist started with -verbose.
      It just says "Connecting to Windows Server Update Service Server" (or Microsoft Update or Windows Update) for a couple of seconds and the exits.
      It might be nice if there was some kind of message like "Update server could not be reached".
      Just a suggestion for future versions.
      Thanks by the way for this wonderful tool which is a life-saver for admins! 
81 - 90 of 357 Items