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.

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


  • Time off by one hour for get-wuhistory
    1 Posts | Last post February 17, 2016
    • The isntallation date/time in list of installed updates generated by get-wuhistory seems to be one hour off. Could be related to timezone? Is this a bug? Is there a way to make it list the correct time? I'm at GMT+1 or (UTC+01:00) Brussels, Copenhagen, Madrid, Paris. Daylight saving times starts on 27 march.
      So for example date is listed as: 17/02/2016 1:47:18 while it should in fact be 17/02/2016 2:47:18.
  • Get update PUBLISHED/RELEASE date
    1 Posts | Last post February 17, 2016
    • I am using the command "Get-WUInstall -MicrosoftUpdate" but was wondering if there is a way to get the published date of the KBs?  This would be very helpful.
      
      Thank you
  • Windows Firewall
    2 Posts | Last post January 28, 2016
    • Hi, what ports /services should be open for Get-WUList work against remote server with Firewall Enabled
      
      Getting this error :
      Exception calling "CreateInstance" with "1" argument(s): "Retrieving the COM class factory for remote component with CLSID {4CB43D7F-7EEE-4906-8698-60DA1
      C38F2FE} from machine srv* failed due to the following error: 800706ba srv*."
      
      Regards
      Anders
    • https://technet.microsoft.com/ru-ru/aa387288
      The following ports and exceptions must be added to the Windows firewall settings for Windows Vista and Windows Server 2008 for the WUA API to be called remotely.
      
      Exception 1
      Local port: 135
      Remote port: ALL
      Protocol number: 6
      Executable: %windir%\system32\svchost.exe
      Service: rpcss
      Remote privilege: Administrator
      
      Exception 2
      Local port: Dynamic RPC
      Remote port: ALL
      Protocol number: 6
      Executable: %windir%\system32\dllhost.exe
      Remote privilege: Administrator
  • Specific updates?
    1 Posts | Last post January 22, 2016
    • Hi Michael.
      I have been using this amazing tool for a while. I would like to pull a certain list of updates by KB name from the MS site. Is there a way to incorporate the list into the script?
  • Is this the most reliable PowerShell command to Export List of All Windows and Software Updates in Windows 10?
    1 Posts | Last post January 06, 2016
    • Hi,
      
      I'm a newbie to PowerShell but in my first hours I have made list of all Windows and Software Updates installed on my pc. It's not perfect like HTML file list of installed Windows updates by using wmic command.
      I tried next:
      1. Get-WUHistory >D:\WUHistory.txt followed by 2nd command
      Get-WUList >D:\WUList.txt
      2. In this case (on D: drive) with only this 2 files, I've applied:
      copy wulist.txt + wuhistory.txt AIOupdates.txt
      or
      copy *.txt AIOupdates.txt /a (if other txt files exist they will be also added!)
      Both files are added into one file. To search for a particular KB I use Notepad++.
      However this list includes all entries of successful and unsuccessful (updates and drivers) installations via Windows Update.
      I noticed that Micorsoft use same KB ID for all versions of Windows Defender update Definitions what results in multiple entries:
      KB2267602 (Definition 1.213.1863.0)
      KB2267602 (Definition 1.213.1837.0)
      KB2267602 (Definition 1.213.1574.0)
      KB2267602 (Definition 1.213.1541.0)  
      Therefore this list doesn't serve a purpose.
      3. Another command which I have applied is:
      Get-WUList -MicrosoftUpdate -isinstalled -computername <pcname> > d:\msupdates.txt
      This is much better solution without duplicate KB IDs (as produced under the step 1.). So, my question is: Is this the most reliable PowerShell command to Export List of All Windows and Software Updates that are installed by using Windows Update (in Windows 10)?
      	
      Many thanks for this update!
  • Date update was released
    1 Posts | Last post December 13, 2015
    • Is there any option to query the date of when an update was released?
  • Patch for Optional Updates
    1 Posts | Last post December 10, 2015
    • if you want to see optional updates in the list, use this patch: https://gist.github.com/JohannesM/8f05e911a18ac1b686a6#file-get-wulist-v1-5-1-patch
      
      I could not figure it out yet, why BrowseOnly = 1 does not work in the search criteria.
  • Not work in Windows 10
    3 Posts | Last post December 08, 2015
    • Okay, so use with Windows 8.1 and works perfect, but does not work in Windows 10. Soon for Windows 10? Thousand thanks.
    • Not sure if you had it pre-installed when you updated to Windows 10, but I have no issues running the PSUpdate Module in Windows 10.
    • *Forgets one detail*: If you had the home edition of Windows 8.1 when you tried going for Windows 10, then it's possible you may not be able to run the module to full capacity as it will self-manage the updates automatically and no regedit entry would be able to disable the Windows Update service.
  • Get-WUList with -Microsoft parameter throws out warning message
    3 Posts | Last post December 03, 2015
    • Hi,
      I'm trying to run the command Get-WUList -MicrosoftUpdate -Computername 
      It gives a warning message
      
      WARNING: Can't find registered service Microsoft Update. Use Get-WUServiceManager to get registered service.
      
      Get-WUServiceManager shows the following so Microsoft Update is registered on the remote computer
      
      IsManaged IsDefault Name
      --------- --------- ----
      False     False     Windows Update
      False     True      Microsoft Update
      
      Would do I need to do for the command to run successfully using the -Microsoft switch ? It does run fine with the WindowsUpdate switch but this does not always list all the outstanding patches. 
      
      Many Thanks !
       
      
      
    • I should have mentioned I'm trying to do this to a remote machine on the same network
    • 1°) On your Windows 2012 server search for "Windows Update Settings".
      2°) Click on "Choose how updates get installed"
      3°) Check "Give me updates for other Microsoft products when I update Windows"
  • problems with Invoke-WUInstall
    1 Posts | Last post November 25, 2015
    • Hello,
      
      I've tried to use Invoke-WUInstall to update remotely, with this command :
      ipmo PSWindowsUpdate; Get-WUInstall -AcceptAll -AutoReboot | out-file D:\Logs\WindowsUpdate.log
      
      And I always have the same problem (on my 2008 and 2008 R2 VMs) : scheduled task is correctly created executed by SYSTEM, but KB installation always fail with error code 80240020.
      Tried to change execution account from SYSTEM to my admin account -> same error
      
      and the same command works like a charm outside of scheduled task, when connected with my account and directly ran in Powershell console. Weird, isn't it ?
      
      after some research, I've found that : https://support.microsoft.com/en-us/kb/910341
      but all points in section C (Win 2008) are OK
      
      Thanks by advance.
      Best regards,
11 - 20 of 207 Items