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
733,828 times
Add to favorites
Windows Update
E-mail Twitter Digg Facebook
  • Get-WindowsUpdate on remote PC accepts but doesn't download or install
    2 Posts | Last post February 26, 2020
    • This works locally meaning it accepts, downloads, installs and reboots if needed.
      Get-WindowsUpdate -AcceptAll  -WindowsUpdate -Verbose  -Install
      Adding PC Name like this:
      Get-WindowsUpdate -AcceptAll -AutoReboot -ComputerName G1TEST-SRV-009 -Verbose -WindowsUpdate -Install
      We get 
      1 G1TEST-SR... Accepted   KB2267602  698MB Security Intelligence Update for Windows Defender Antivirus - KB2267602 (...
      The update is accepted but not downloaded or installed.
      I thought this is supported but maybe not. Also there my be a difference in behavior when using -WindowsUpdate which hits the MS site not our local WU site.
      Maybe I just need some help with syntax or maybe this isn't supporte.
    • It's better to use Invoke-WUJob when deploying updates to remote servers.
      Invoke-WUJob -computername TEST01, TEST02, TEST03 -Script {ipmo PSWindowsUpdate; Get-WindowsUpdate -AcceptAll -Install | Out-File C:\Logs\WindowsUpdate\PSWindowsUpdate.log } -Confirm:$false -Verbose -RunNow
  • ScheduleReboot when updates overrun the specified time
    1 Posts | Last post January 17, 2020
    • On one of my servers I run:
      Install-WindowsUpdate -AcceptAll -ScheduleReboot 20:00
      This normally works fine, but sometimes if the updates take a long time, it will overrun the specified time, and then the server doesn't reboot at all.
      Is there anyway to fix this, so that if it overruns, it just reboots as soon as the updates are done?
  • How to update to latest version of PSWindowsUpdate
    1 Posts | Last post January 11, 2020
    • Hi there, I am very new to this so please bear with me. I've installed a version of PSWU which I later discovered is not the latest version - I am on version and the current version is I've spent the last 2 hours trying to update it but I'm at a loss. Attempting to just install the latest version anyway lead to this response: "WARNING: Version '' of module 'PSWindowsUpdate' is already installed at
      [folder location]. To install version '', run Install-Module
      and add the -Force parameter, this command will install version '' in side-by-side with version ''." Am I supposed to manually delete the folder before installing the new version? Or is there some other way to do this? Thank you in advance!!
  • Technet terms of use
    2 Posts | Last post December 03, 2019
    • Hi, Can somebody please confirm that the License agreement under which this script has been published (TechnNet terms of use) permits its' use within a customer Environment?
    • I've spoken to one of our Wintel experts and they've confirmed that we can use the script. Thanks
  • License purchase
    1 Posts | Last post November 22, 2019
    • Hi my friend has downloaded the latest version, I have to find where to buy the license key
  • Optional Updates
    2 Posts | Last post November 04, 2019
    • How can I instruct the script to also download and install optional updates?
    • is suppose you should change update settings  / give me optional updates like windows update  
  • windows server 2019
    1 Posts | Last post November 04, 2019
    • Hello your module work on windows Servers 2019 when i run script like user
      , but when i run task like  system account ( becouse i have task schedule on my servers to run windows update script) i got error  from wsus agent (invalid parametr) / on windows server 2012 R2 everythink is OK, but, on windows server 2019 i got error 
      do you have any idea WHY ? 
      interesting logs:
      X Status     KB          Size Title
      - ------     --          ---- -----
      2 Accepted   KB4516115  21 MB 2019-09 Security Update for Adobe Flash Player for Windows Server ...
      3 Failed     KB4516115  21 MB 2019-09 Security Update for Adobe Flash Player for Windows Server ...
      167 [AGENT_DOWNLOAD_STARTED]	101	{0C8661DD-4D67-404D-8095-B66D854A34F4}	200	0	<<PROCESS>>: powershell.exe	Success	Content Download	Download started.	KZAGYAOZ0UK4lgCH.
      161 [AGENT_DOWNLOAD_FAILED]	101	{0C8661DD-4D67-404D-8095-B66D854A34F4}	200	80070057	<<PROCESS>>: powershell.exe	Failure	Content Download	Error: Download failed.	KZAGYAOZ0UK4lgCH.
      80070057 error  is  bad parametr
      do you have idea WHY ? 
      thanks for any help  / i chacked also lasters version you module
  • Server-Manager & Update - GUI doesn´t refresh after Update via Script
    1 Posts | Last post October 08, 2019
    • Hi, 
      after applying the updates via script using your fantastic module the gui (Settings-Windows Update and the Servermanager) doesn´t refresh. So the Datetime at "Last installed Update" stays on the former date. Also in the Windows-Update GUI the updates still shows up. You need to click on "Install" and then they´ll disappear. Do you have any idea how to fix that for me, so my users don´t think, that no updates get installed?
      Thank you for the reply and the module.
      Best regards,
  • windows 10 1709 to 1903
    1 Posts | Last post September 27, 2019
    • Hi,
      I'm trying to update my windows 10 master with PSwindowsupate.
      I work in audit mode with a virtual machine which contains a master (windows 10 1709).
      I installed PSWindowsupdate, i can download and install several KB, but the KB4517211 fail 
      all the time (update to 1903).
      The update is accepted, ready to download, but the download is stuck at 0 and after a while it fail. I notice the size of the update (91GB).
      I know it is a bug, but my virtual disk is 35GB an i wonder if there is a test of sizing before the download.
      Any clue ?
      Thanks in advance,
  • Usage of -Criteria parameter
    1 Posts | Last post September 25, 2019
    • Hi guys
      Can anyone suggest how exactly -Criteria parameter works or what is the correct syntax to use it?
      For example, I want to filter all updates released/revised before date dd.MM.YYYY . 
      I tried to some syntax I could find in manuals like: -Criteria \"(DateRevised -le 25.03.2019)\", 
      I tried to use filed names I could find in sccm scup db: -Criteria "$_.DateRevised -le 25.03.2019"
      Unfortunately nothing worked, I always get an error and I cannot find any documentation or examples for this parameter. 
1 - 10 of 357 Items