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.

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

  • 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?
  • Filter by Releasedate
    1 Posts | Last post June 28, 2016
    • Is there a way to filter the updates by release date? 
      For example I want to update a server to the same patch level as an existing server. I know the existing server was last updated on the 28/02/16 and the new server needs to be at the same patch level. 
      So I would want to run this script and it by only show updates released before 28/02/16 
      Is there anyway to achieve that here? 
  • 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.
  • The PowerShell module didnt launch
    2 Posts | Last post May 24, 2016
    • With a clean windows 7 image the script didnt work. I removed the "unblock-file" line from the PSWindowsUpdate.psm1 file.
      The module has been loaded now!
    • Microsoft's article on Unblock-File states that:
      This cmdlet is introduced in Windows PowerShell 3.0.
  • Bug in Get-WUInstall -AutoSelectOnly?
    1 Posts | Last post May 03, 2016
    • Since documentation is typically sparse for Microsoft, I am finding it next to impossible to confirm syntax for these commands.
      Microsoft's Windows Update dialog loads with 12 "important updates" (a "category" that is not supported by PSWindowsUpdate) selected and 4 "optional updates" (another "missing category") not selected.
      Get-WUInstall -AutoSelectOnly -ListOnly lists all 16 updates, including the 4 that the WU GUI does not select automatically.
      Is this a bug in Get-WUInstall?
  • Update the Windows Updates for .Net Features from Internal Link
    1 Posts | Last post April 29, 2016
    • Hi,
      We are using SCCM for updates and I am building the automation to build the server. the SCCM takes almost 15 minutes to connect to it even if it is configured so I need to use the Internal Update URL to do windows updates. Suppose I have the URL as http://xxx:8534 . How can I use Powershell Windows update to get the updates from URL instead of going out the server or over Internet.
  • Listing update on remote computers
    1 Posts | Last post April 07, 2016
    • I just found this script. I thought I'd try it by starting to list updates on remote computers. It works on my own, but not others and I'm not sure why.
      The example in the help file is to use the name of the remote computer piped to the command.
      "whateveryremotecomputernameis" | get-wuhistory
      When I run this the command only comes back to the prompt and fails to display any results, as it shows it would in the help file.
11 - 20 of 223 Items