PowerShell-Docs
PowerShell-Docs copied to clipboard
Document `-ExcludeModule` parameter for `Get-Command` cmdlet
Prerequisites
- [X] 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.
- [X] 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
- https://github.com/PowerShell/PowerShell/pull/18955
Related Source Issues
- https://github.com/PowerShell/PowerShell/issues/16747