Skip to content

Invoke-GPUpdate cmdlet not recognized in PowerShell! Push out Fix or add fix ref to help documentation #2895

Open
@Godsfunambulator

Description

@Godsfunambulator

This cmdlet is not always recognized after a certain windows update. Please push out a fix or add the fix to this page.
Error:
"
invoke-gpupdate : The term 'invoke-gpupdate' 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 again.
At line:1 char:1

  • invoke-gpupdate
  •   + CategoryInfo          : ObjectNotFound: (invoke-gpupdate:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

"

Fix:
Get-WindowsCapability -Name 'Rsat.GroupPolicy.*' -Online | Where-Object { $_.State -ne 'Installed' } | Add-WindowsCapability -Online
update-help -force

Site Reference:
https://stackoverflow.com/questions/69034061/gpudate-ps-commandlet

Powershell Version: 7.2.1.0-x64

Thanks, Lawrence


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

area-grouppolicyIssues for grouppolicy moduleissue-doc-bugSomething is out of date, unclear, confusing, or broken in the article. Blocks customer success.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions