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.7 Star
(273)
370,503 times
Add to favorites
Windows Update
12/18/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • How can I get updates from intranet WSUS server?
    2 Posts | Last post September 02, 2016
    • Hi guys,
      
      I've setup a intranet WSUS server with a URL:“http://my-wsus-server:80”.
      
      And how can I leverage this module to get updates from my WSUS server?
      
      Have you guys ever met the same situation as me?
    • You can write a script to change the registry to point to your WSUS server and also change the UseWUserver value to 1. once done call the get-WUinstall cmdlet with the required parameters 
  • Windows Update module not working for Windows 2012 STD
    1 Posts | Last post September 02, 2016
    • Hi,
      
      I have automated the windows image creation using the answer file which also connects to local WSUS server and download and install the updates from it during the logon phase. I am using the PSWindowsUpdate module and have forcefully pointed the server to local wsus server before calling the Get-WUInstall cmdlet. However for Windows 2012 STD it just import the module and does not do anything after it. The same works fine with Windows 2012 R2. Is there any additional changes to be done for Windows 2012 STD.
      
  • 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.
      
      Thanks,
      Deepak
  • 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 } 
      			else 
      		{
      		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: https://gist.github.com/JohannesM/8f05e911a18ac1b686a6#file-get-wulist-v1-5-1-patch 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?
11 - 20 of 229 Items