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
457,566 times
Add to favorites
Windows Update
E-mail Twitter Digg Facebook
Sign in to ask a question

  • How to install new software from the Microsoft Update Catalog
    1 Posts | Last post May 24, 2017
    • I would like to install the "Microsoft Azure Information Protection Client" from the catalog on a system that does not yet have it installed. This update appears with Get-WUList on a system that has AIP already installed, but otherwise does not. How do I force an install on a system that does not yet have AIP?
  • Microsoft Update
    2 Posts | Last post May 24, 2017
    • When I do wuget-servicemanager, it returns Windows Update True, Microsoft Update, False.
      Is there a way to enable the Microsoft Update through this script? I do this manually at the moment for each new computer which is tedious.
    • Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d -Confirm:$false
  • Windows 10 Upgrades
    3 Posts | Last post May 23, 2017
    • Hello,
      I have been using this script with my WSUS deployment and it's been working great. However, when it comes to Feature Updates such as moving to 1607 and now 1703, the update is accepted, downloaded, and installed as expected but after reboot the system goes straight to the lock screen and makes no mention of installing updates. So in the end, the update is not applied. Has anyone else experienced this?
    • How are you using it in your WSUS setup?
    • The Script can handle normal updates, but the windows 10 feature updates are different. when they install they are only staging the installation media on the system drive. You then need to trigger the upgrade install to finish the upgrade process. The command I use in my scripting is C:\$WINDOWS.~BT\Sources\SetupHost.Exe /Finalize /Update /InstallFile "C:\$WINDOWS.~BT\Sources\Install.esd"
      Hope this helps
  • Insider Preview
    1 Posts | Last post May 22, 2017
    • Can this be used to script the Insider Preview updates?
  • Update-WUModule is not recognized
    1 Posts | Last post May 22, 2017
    • I get this error when I run Update-WUModule key
      Update-WUModule : The term 'Update-WUModule' is not recognized as the name of a cmdlet, function, script file, or
      operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
      At line:1 char:1
      + Update-WUModule
      + ~~~~~~~~~~~~~~~
          + CategoryInfo          : ObjectNotFound: (Update-WUModule:String) [], CommandNotFoundException
          + FullyQualifiedErrorId : CommandNotFoundException
  • Unable to download updates (WSUS)
    2 Posts | Last post May 19, 2017
    • I have tested this now - but im really unable to get any downloaded from my WSUS server
      I can list updates i can run it and it seems like its correct - but when i want to install it just times out on downloading the updates
      The updates are available on the WSUS server and synced but no matter what the download is not downloaded to the machine and installed.
      What can be wrong here?
    • Figured out - need to open both http and https port to WSUS in firewall - was not a requirement in the built in WSUS normal client
  • Support Windows 2016?
    1 Posts | Last post May 17, 2017
    • Hi Michal,
      Thanks for the module, it really saved a lot of effort. Really appreciate for the module. Also, does your module supports Windows 2016 Operating System to?
  • Trying to automate Windows update.
    2 Posts | Last post May 16, 2017
    • I'm Trying to create a scenario that turns on a computer at 3am. Then i have the computer runs a scheduled task that runs the PSWindowsUpdate on the local computer. This then downloads all available updates from wsus server, installs them and restarts the computer if necessary. My questions is can this be don, no user is logon on to the local computer. What i'm doing now is via pdq deploy i wake on lan the computer a 2.50 am then i have create a scheduled task via gpo that runs a ps script. Executionpolicy is set to remotesigned. Import-Module \\fkipdc01\NETLOGON\PSWindowsUpdate\PSWindowsUpdate\PSWindowsUpdate.psm1; Get-WUinstall -IgnoreUserInput -acceptALL -AutoReboot. The scheduled task Works fine but the problem is that the computer dos not install and restart There is many updates available, the test computer is from a image where there is 40 updates available. After 1 hour i log on to the computer i can se that the computer has downloaded the updates and is prompting my for restart, to installe updates. How can i get it to work so i can get ps update to run even if no user is log on. Scheduled task is set to run even if no user is log on. If i can get this to work i will be deployed to 150 computers.
    • Kevin30it,
      How did this turn out?  I am trying something about the same with PDQ Deploy and wanted to see my options
  • cant download file
    1 Posts | Last post May 16, 2017
    • Can not download file
      File size 0 bytes ... can you reload it?
  • Get-WUList shows only latest missing Uudate
    1 Posts | Last post May 15, 2017
    • Hi.
      I really like this tool and used it for a long time. However since MS changed their update strategy I have a wired problem.
      We only apply monthly security only roll-ups which from what I understand are not cumulative. So when I scan a machine for missing updates only the most recent quality and security roll-up is displayed as missing which is not what I want.
      So if I now run the scan on a machine where all updates till December 2016 are installed it only shows the 2017-05 security and quality rollup (KB4019264) as missing.
      What I am missing (beside the updates ;-)?
      Thanks a lot.
11 - 20 of 259 Items