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.

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


  • many thanks and a very little thing
    1 Posts | Last post November 23, 2015
    • Hi Michal,
      
      First, many thanks for this library, it works like a charm :)
      
      Just a detail, not really a problem : the "Unblock-File" commandlet is not supported in Powershell 2.0 (used in ly enrivonment)
      Is this library still working with Powershell 2.0 ? Or do we need to upgrade for future versions ?
      
      Thanks again and kind regards,
      Romain
  • PSWindowsUpdate missing updates
    2 Posts | Last post November 23, 2015
    • Hi Michal,
      
      First of all, thanks for creating this module, good job! It makes live so much easier. I have been using this to update our 150+ servers for some months now.
      
      However, lately I noticed that the module is not fully functioning anymore. I ran the command 'get-wuinstall -ignoreuserinput -acceptall' and this doesn't return any updates but the windows update panel shows 13 important updates & 8 optional updates. 
      
      Could this be due to a change in the WindowsUpdate Agent?
      
      Kind regards,
      Bart
    • Hi Michal,
      
      The updates showing in Windows Update are not valid. The updates were already installed by the PSWindowsUpdate module but probably some list doesn't get cleared. As soon as I hit the "Install now" button in Windows Update the updates were miraculously installed in a flash.
      
      Thanks anyway
      
      Kind regards,
      Bart
  • Not connecting to our SCCM server, always return 0 update
    1 Posts | Last post November 22, 2015
    • Then going into an endless loop.
      We run it as Get-wuinstall -ignoreuserinput -verbose -acceptall -autoreboot
      Adding -windowsUpdate in fornt works just fine, however we want it to get tested updates from our SCCM servrer
  • Get-WUinstall suggestion
    2 Posts | Last post November 19, 2015
    • i would like to suggest that the get-wuinstall and invoke-wuinstall be combined.
      so add a parameter of -compuername and with that i will do what the invoke-wuinstall would normally do and take all of the inputs of get-wuinstall like -acceptall and such and adds it to the remote invoke command.
      also would like some kind of status of the remote install of patches. not a status of what the current install is doing but a status of what one it is currently on and which one has completed so completed 1 of 8; completed 3 of 8.  i guess that you could read the file to see if has been completed and then delete the file afterwards.
      
      great module love it
    • > not a status of what the current install is doing but a status of what one it is currently on and which one has completed so completed 
      
      This is very challenging to do.  Right now you cannot perform updates to a system remotely because of how the permissions are designed in the Windows Update service.  The `invoke-wuinstall` script gets around this by running the install as a scheduled tasks.  But once you run something as a scheduled task there isn't a great way to get the interactive output of that scheduled task back to the user.  AFAIK the only thing you can do is have update your `invoke-wuinstall` to create logs, and then look at logs.
      
  • Bugs / Suggestions?
    2 Posts | Last post November 19, 2015
    • Just making a bug / feature request for future versions...
      Get-WUInstall.ps1
      Add - a remote computer support option.  As of v1.51 there is no support for specifying a remote computer to run service / updates.
      
      Get-WUList.ps1
      Fix - Specifying a remote computer name does support detection of services, only on local computer.
      
    • You must use `Invoke-WUInstall` to install updates on remote computers.  This basically creates a scheduled task to perform the update.  I believe it has to be this way for now because of some permission issues in the Windows Update service.
  • Hello Michal,
    2 Posts | Last post November 12, 2015
    • We need to extract updates by list (array of KB)from WSUS to the different folder
      
      Something like this:
      
      blogs.msmvps.com/athif/2006/05/09/batch-script-to-extract-updates-from-wsus-content-folder-by-alexander-suhovey/
      
      but working on Windows Server 2012r2
      
    • I wrote a script for this issue
      https://gallery.technet.microsoft.com/scriptcenter/Copy-WsusUpdateToFolder-3425fde0
      
      MBSA - create report
      Script copy files from report to directory
  • Hide-WUUpdate –Title on Windows Server 2012 R2
    1 Posts | Last post November 09, 2015
    • We'd like to automate the Windows Update installation on our servers. Most of the servers are running Windows Server 2012 R2. There are a few specific Windows updates that we don't want to be installed however, so the idea is to hide them by title.
      
      I can't get this to work on Windows Server 2012 R2. The Hide-WUUpdate –Title function simply doesn't hide the updates. I have tested the same function on Windows Server 2008 R2 and Windows 8.1, that works fine.
      
      Is there a way to hide the updates by title on Windows Server 2012 R2? Any help on this problem would be greatly appreciated!
  • Invoke Get-WUUninstall Silently?
    1 Posts | Last post November 02, 2015
    • Is there a way to do this? I can throw the -Confirm switch at it but the uninstall process still brings up a GUI window to confirm the uninstall of specific KBs.
  • Trying to automate Windows update.
    1 Posts | Last post October 27, 2015
    • 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.
  • Ipmo ?
    2 Posts | Last post October 04, 2015
    • I have to import this module every time I want to use it after a reboot. Any way to make it stick permanently?
    • I extracted to system folder and all is well now. Not sure why the ipmo command was not sticking after reboot though
11 - 20 of 197 Items