Document `-ExcludeModule` parameter for `Get-Command` cmdlet · Issue #11356 · MicrosoftDocs/PowerShell-Docs · GitHub
Skip to content

Document -ExcludeModule parameter for Get-Command cmdlet #11356

Closed

Description

@MartinGC94

Prerequisites

  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Document new Get-Foo cmdlet" instead of "New cmdlet."

Summary

Need to update the parameters for Get-Command to include the new -ExcludeModule parameter.

Details

The new parameter lets the user exclude commands from certain modules from being listed. For example Get-Command *disk* -ExcludeModule Storage would list all disk commands that are not in the Storage module. This mirrors the existing -Module parameter which limits the found commands to the specified modules.

Articles

No response

Related Source Pull Requests

Related Source Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue-doc-ideaIssue - request for new content

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions