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
734,100 times
Add to favorites
Windows Update
E-mail Twitter Digg Facebook
  • Get-WUInstall using -usessl
    1 Posts | Last post March 21, 2019
    • is there any chance in the future to be able to run over https?
  • Push 1803 or 1809?
    1 Posts | Last post March 20, 2019
    • Has anyone been able to push feature updates? That's basically the only thing i want to do with it, but they don't show up when i list updates, but show up just fine if i use Windows Update.
  • Get-WindowsUpdate The type initializer for '<Module>' threw an exception
    3 Posts | Last post February 23, 2019
    • I'm getting this error and can't figure out what is going on. I have remoting enabled. I am logged into the computer as Domain\Administrator.
      PS C:\WINDOWS\system32>Get-WindowsUpdate -Verbose -ComputerName aus1
      VERBOSE: aus1 (2/19/2019 4:42:30 PM): Connecting to default for aus1. server. Please wait...
      VERBOSE: Found [6] Updates in pre search criteria
      Get-WindowsUpdate : The type initializer for '<Module>' threw an exception.
      At line:1 char:1
      + Get-WindowsUpdate -Verbose -ComputerName aus1
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], TypeInitializationException
      + FullyQualifiedErrorId : System.TypeInitializationException,PSWindowsUpdate.GetWindowsUpdate
    • Forgot to mention running on Windows 2012 R2 with PowerShell 6.1.3
    • PowerShell combines command-line speed, the flexibility of scripting, and the power of a GUI-based admin tool. you can do anything with your windows machine using PowerShell, So if you are windows system administrator PowerShell is very important skill to have.
      let me give you share some things you can do with PowerShell. 
      Configure the complete networking on Windows: You can use PowerShell cmdlets to configure the IP addresses , dns servers etc. Look at Set-DnsClientServerAddress, Set-NetIPAddress , Set-NetIPInterface cmdlets.
      Schedule the Tasks on Windows: Consider you want to run an executable logon.exe whenever a user log in the computer.
      You can automate the task of running logon.exe using powershell cmdlets as shown below.
      $action = New-ScheduledTaskAction -Execute  "logon.exe" -Verbose
         $trigger = New-ScheduledTaskTrigger -Once -At Logon-Verbose
         Register-ScheduledTask -TaskName PERIODIC_LOG_COLLECTION -Trigger    $trigger -Action $action -description "logon_custom" -User "Adminsitartor" -RunLevel 1
          Set-ScheduledTask logon_custome -Trigger $trigger
      Manipulate the registries key on Windows: you can read, edit create and delete registry keys in windows using PowerShell cmdlets. get-itemproperty and Set-itempropperty can be used for these operations.
      Accessing WMI objects : WMI objects represent systems, applications, networks, devices, and other managed components. You can use PowerShell to manage them. Example:  Get-WmiObject -Class Win32_OperatingSystem -Namespace root/cimv2 -ComputerName .
      Remote Sessions in Windows: PowerShell is very power full tool manage Windows machine remotely. remote sessions in PowerShell is so seemless, it feels you are on the PowerShell session of local machine. 
      Note: I have not scratched the surface yet. There are lot more things you can do.
  • Error when trying to run Get-WUHISTORY
    1 Posts | Last post February 14, 2019
    • Hey All,
      When I run  Get-WUHistory -ComputerName Computer I get the error 
      Get-WUHistory : Computer: Connection failure, check firewall on destination machine.
      But I can run invoke-wujob and I can remote into the machine so I am not sure how the firewall is blocking this command.
  • SendReport to Gmail
    1 Posts | Last post February 14, 2019
    • I've not been able to get the -sendreport to work with or our internal relay.  What is the correct way to use this?  How can I send an email status report?
  • What does D mean in the status?
    2 Posts | Last post January 25, 2019
    • Hi, when I run Get-WindowsUpdate, it lists the available updates. One of them lists:
      What does that mean?
      Thank you
    • Downloaded
  • The Ultimate Treatment of Addiction
    2 Posts | Last post December 01, 2018
  • Get-WUHistory
    1 Posts | Last post December 01, 2018
    • When I run command Get-WUHistory it takes about 4 seconds for the prompt to come back but it does not display any info? 
      Get-WUServiceManager returns True for Windows Server Update Service
      We use Configuration Manager for patching. 
  • This is deprecated!!
    1 Posts | Last post September 14, 2018
    • Why is there no link to the 2018 versions of PSWindowsUpdate?
      This is an old version. Can we retire this page and redirect to the other site?
  • [US-TV]!! Arizona vs Houston 2018 Live Stream NCAAF Game Watch College Football Online Web HD TV Telecast
    1 Posts | Last post September 08, 2018
    • Arizona vs Houston Live Natives natives co uk Videos Events 5 hours ago Arizona vs Houston Live video on Natives Houston vs Arizona Live Score Today 
      watch live:
      Houston vs Arizona Live Stream Free Houston vs Arizona Arizona Wildcats vs Houston Cougars  Live score updates TV   oregonlive com sports index ssf arizona wildcats vs houston co html 10 hours ago Kevin Sumlin and the Arizona Wildcats look to rebound from a Week 1 loss to BYU with a road trip to Houston to take on the Cougars Saturday Arizona vs Houston  5 Houston to watch Arizona Desert Swar  azdesertswarm com arizona vs houston 5 cougars to watch wildcats ol 2 days ago After a rough 28 23 opening loss to BYU the Arizona Wildcats head to Texas for a 9 a m MST kickoff against the Houston Cougars Despite their status as a Group of 5 team Houston has plenty of talented players on their roster and they beat Arizona in Tucson last year albeit Arizona vs Houston live TV Channel Facebook  facebook com events 261277584717122 azdesertswarmcomarizona vs houston 5 cougars to watch wildcats ol 2 days ago After a rough 28 23 opening loss to BYU the Arizona Wildcats head to Classifieds (Watch LIVE)Arizona Wildcats vs Houston Cougars Live   discoverweyburn com 4551 watch live arizona wildcats vs houston c 45 mins ago Arizona Wildcats vs Houston Cougars  Live score updates TV channel how to watch live stream Arizona vs Houston  5 Houston to watch Classifieds Arizona Wildcats vs Houston Cougars Live S
31 - 40 of 357 Items