Error Parameter Cannot be Found When Using Get-WindowsUpdate

Hirzarul Affendi 1 Reputation point
2020-08-03T02:55:12.15+00:00

When I tried to install a certain patch in Windows Server 2016 using below command, I encounter error.

Get-WindowsUpdate -Install -KBArticleID 'KB4022161'

The error is:

Get-WUList : A parameter cannot be found that matches parameter name 'Install'.
At line:1 char:19

  • Get-WindowsUpdate -Install -KBArticleID 'KB4022161'
  • ~~~~~~~~
  • CategoryInfo : InvalidArgument: (:) [Get-WUList], ParameterBindingException
  • FullyQualifiedErrorId : NamedParameterNotFound,Get-WUList

I'm not sure why the parameter install could not be found. Below is my PowerShell version. Could someone let me know how can I fix it?

Major Minor Build Revision


5 1 14393 2636

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,544 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. 2020-08-03T08:01:28.837+00:00

    According to the error message you provided, I checked the help file of GET-WULIST. No matter it is version 1.6.1.1 or 1.5.2.2, there is no INSTALL parameter, so an error will be generated.

    https://www.powershellgallery.com/packages/PSWindowsUpdate/1.6.1.1/Content/Get-WUList.ps1
    https://www.powershellgallery.com/packages/PSWindowsUpdate/1.5.2.2/Content/Get-WUList.ps1

    0 comments No comments

  2. 2020-08-20T01:39:12.273+00:00

    Has your problem been resolved? If there is any new development, please contact us.
    :)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.