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.

 
 
 
 
 
(255)
308,264 times
Add to favorites
Windows Update
12/18/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • 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:
      https://technet.microsoft.com/en-us/library/hh849924(v=wps.620).aspx
      
      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.
  • Get-WUList -MicrosoftUpdate
    4 Posts | Last post April 04, 2016
    • WARNING: Can't find registered service Microsoft Update. Use Get-WUServiceManager to get registered service.
      
      I get that when I run several commands I tried. For example:
      
      Get-WUInstall -MicrosoftUpdate -IgnoreUserInput -WhatIf -Verbose
      
      or
      
      Get-WUList -MicrosoftUpdate
      
      What does it mean, and how can I work around it?
    • https://www.petri.com/manage-windows-updates-with-powershell-module
      
      Search on that page for "Registering the Microsoft Update servers".  There is a paragraph above it that explains how to fix this issue and snipits showing the fix.
    • Aqui tbm apresenta o mesmo erro.
    • You need to use Get-WUServiceManager and then look for new updates with ServiceID attribute
      for example : Get-WUList -ServiceID 9482f4b4-e343-43b6-b170-9a65bc822c77
  • Hiding updates very slow
    1 Posts | Last post March 03, 2016
    • I have noticed on two different machines when I try to hide a few updates with: 
      
      hide-wuupdate -KBArticleID @("kb3035583","kb2952664","kb3021917") -confirm:$false
      
      The process is extremely slow. right now I have been waiting about an hour and a half.
      
      Any ideas as to why? In the windowsupdate log I see these over and over:
      
      2016-03-03	15:45:45:453	3192	fe8	Misc	===========  Logging initialized (build: 7.6.7601.18804, tz: -0500)  ===========
      2016-03-03	15:45:45:453	3192	fe8	Misc	  = Process: C:\Windows\system32\wuauclt.exe
      2016-03-03	15:45:45:453	3192	fe8	AUClnt	Launched Client UI process
      2016-03-03	15:45:45:453	3192	fe8	Misc	===========  Logging initialized (build: 7.6.7601.18804, tz: -0500)  ===========
      2016-03-03	15:45:45:453	3192	fe8	Misc	  = Process: C:\Windows\system32\wuauclt.exe
      2016-03-03	15:45:45:453	3192	fe8	Misc	  = Module: C:\Windows\system32\wucltux.dll
      2016-03-03	15:45:45:453	3192	fe8	CltUI	AU client got new directive = 'Download Progress', serviceId = {7971F918-A847-4430-9279-4A52D1EFE18D}, return = 0
      2016-03-03	15:45:45:468	3192	fe8	CltUI	FATAL: Failed to show download progress, hr=8024AFFF
      2016-03-03	15:45:45:468	 912	bc4	AU	AU received handle event
      2016-03-03	15:45:45:468	 912	bc4	AU	AU setting pending client directive to 'Download Progress'
      2016-03-03	15:46:00:468	 912	bc4	AU	Launched new AU client for directive 'Download Progress', session id = 0x2
      
      
  • Kick of already downloaded updates from WSUS (2)
    1 Posts | Last post March 02, 2016
    • I have been troubleshooting, and this is what i came up so far.
      
      I create a scheduled tasks on the servers, that starts te following command:
      Get-WUInstall -confirm:$false -AutoReboot
      
      when i manually start the command, it is installing the updates en reboots the machine, when i trigger the scheduled task from a remote computer it fails, i use the following command:
      schtasks /run /S <remote server> /U <adminaccount> /TN "Run WindowsUpdate Script"
      
      
  • Kick of already downloaded updates from WSUS
    1 Posts | Last post March 02, 2016
    • Hi guys,
      
      I'm not the best powershell scriptwriter here....,but i''m  looking for a powershell command to kick-off (the already downloaded/pushed) updates from our wsus servers and automaticely reboot the servers if nescesarry. 
      
      I want to use this script to kick-off the updates on patch tuesday on multiple Windows 2008 R2 and Windows 2012 R2servers (+- 60).
      
      Any help would be appreciated!
      
      With regards,
      John
  • Credentials when using cmd Get-WUlist
    1 Posts | Last post February 23, 2016
    • Can i give credentials when using Get-Wulist, it seems that it's using those coming from the machine where script is running?
      thx!
11 - 20 of 219 Items