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
734,100 times
Add to favorites
Windows Update
E-mail Twitter Digg Facebook
  • PS Module take a long time
    1 Posts | Last post June 07, 2018
    • I have several Windows 10 1703 desktop station. Some are physical and some virtualized. My virutalized systems has a big problem. All PSWindowsUpdate commands take a long time for execution. For example Get-WUSettings take 2 minutes and 45 seconds. A retry does not minimize the execution time.
      If i execute this on a physical Windows 10 then it take one second. Nearly the same on a virtualized Windows 7. What could be the problem?
  • Get-WUServiceManager - WSUS not listed as default
    5 Posts | Last post June 04, 2018
    • OS is Server 2016 w/GUI. For some reason our wsus server is not listed as the default.  I know my client is checking in to our wsus server when I use the GUI to check for updates because I can see the connection on our wsus server.  I have added pointed the client to our wsus server using gpedit.msc.
      Here is the output of Get-WUServiceManager (couldnt copy and paste so leaving ID as XXX:
      ServiceID  IsManaged  IsDefault  Name
      ---------  ---------  ---------  ----
      XXX        True       False      Windows Server Update Service
      XXX        False      True       Windows Update
      My question is, how can I change it so that our wsus server is the default so that Get-WUInstall pulls updates from our wsus server?
    • I have a question posted on stack exchange.  Would you mind taking a look?  THank you so much.
    • Disregard my last reply to you.  That was accidental and not related to your question. Sorry.
    • I am struggling with the same problem. My WSUS is set through GP, but not listed as default so get-windowsupdate shows 0 results.
    • I fixed this by Enabling the policy for "Do not allow update deferral policies to cause scans against Windows Update"
  • hide-wuupdate missing?
    2 Posts | Last post June 04, 2018
    • Hello,
      I've installed the most recent version of the module on Windows 10, and while all other cmdlets work fine (e.g. get-wulist), hide-wuupdate seems to be missing:
      hide-wuupdate : The term 'hide-wuupdate' is not recognized as the name of a cmdlet
      Was is removed?
    • Hmm it looks like it was renamed to hide-windowsupdate?
  • How can I use the PS command Get-WindowsUpdate to obtain the Microsoft security bulletin numbers for each update?
    1 Posts | Last post May 09, 2018
    • How can I use the PS command Get-WindowsUpdate to obtain the Microsoft security bulletin numbers for each update? 
  • It is completly disconnected from Settings / WU
    1 Posts | Last post April 19, 2018
    • I can do 
      C:\Windows\System32\USOClient.exe StartScan
      updates (due to WU GPO settings) are downloaded (Install button is active) buy this PS Module still downloads its own copy & while installing it does not register the running ststus in Settings /WU (as one would get with C:\Windows\System32\USOClient.exe StartInstall )
      Could that be integrated?
  • Updates not installing.
    2 Posts | Last post April 19, 2018
    • Hi,
      I am not sure what I am missing but I am following the steps using the link below and am getting a list of updates being returned but nothing being installed. This is on Windows Server 2016.
    • Use this instead:
      Install-WindowsUpdate –AcceptAll –AutoReboot
  • A way to wuauclt /reportnow?
    1 Posts | Last post April 11, 2018
    • Is there an equivalent way to force the client to report status back to WSUS?  Something equivalent to the old wuauclt /reportnow?
  • Possible to filter by date?
    1 Posts | Last post April 10, 2018
    • Is there a way to filter updates by date, before download and installation?
      I've been trying to install updates released more than X days ago, but don't see any built in filter for date.  If it's possible to parse a list, and feed the updated list back into Get-WUInstall, that would be ideal.
  • How to report on available updates?
    2 Posts | Last post March 14, 2018
    • I am trying to find a way to get a list of available updates, and sending them to an admin address, but I am struggling to make it give me a useable output.
      For example:
      $WUList = Get-WUList
      Send-MailMessage -to $ToAddress -from $FromAddress -Subject $Subject -smtpserver $SMTPServer -Credential $SMTPCreds -Body $WUList
      Gives me this error:
      Send-MailMessage : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Body'. Specified method is not supported.
      Send-MailMessage -to $ToAddress -from $FromAddress -Subject $Subject -smtpserver $SMTPServer -Credential $SMTPCreds -Body ($WUList | Out-String)
      Almost works, and I get this in my email body:
      ComputerName Status KB          Size Title                                                                                                                                                                                                                                               
      ------------ ------ --          ---- -----                                                                                                                                                                                                                                               
      DESKTOP-L... D----- KB4088776 182 GB 2018-03 Cumulative Update for Windows 10 Version 1709 for x64-based Systems (KB4088776)
      But that is all, and not particularly well formatted.
      $MessageContent = "
      These updates will be installed:
      Send-MailMessage -to $ToAddress -from $FromAddress -Subject $Subject -smtpserver $SMTPServer -Credential $SMTPCreds -Body $MessageContent
      Is close, but the message body contains:
      Updates are available.
      These updates will be installed:
      System.__ComObject System.__ComObject
      So, in conclusion, has anyone found a way of formatting the output of Get-WUList so it can be used?
      I have tried playing around with changing the Type, and converting from System.Object, but without any luck.
    • you have to convert the $wulist into html and a string and send the email as html. Try this:
      $html = $WUList |select ComputerName, Status, KB, Size, Title | ConvertTo-Html | Out-String
      Send-MailMessage -to $ToAddress -from $FromAddress -Subject $Subject -smtpserver $SMTPServer -Credential $SMTPCreds -BodyAsHtml $WUList
  • Github?
    1 Posts | Last post March 14, 2018
    • Hi, is this project hosted on Github (or any other platform?)
      -> Where can I report bugs?
      -> Where can I find a global documentation? (Like an About_PsWindowsUpdates for example).
51 - 60 of 357 Items