MicrosoftDocs / PowerShell-Docs

The official PowerShell documentation sources
https://learn.microsoft.com/powershell
Other
2.01k stars 1.58k forks source link

New-PSSessionConfigurationFile: VisibleCmdlets and Wildcards #11436

Closed tommymaynard closed 1 month ago

tommymaynard commented 1 month ago

Type of issue

Typo

Feedback

Example 5 [1] shows that VisibleCmdlets can be used with a wildcard ('Get*'); however, the parameters section for VisibleCmdlets [2] indicates that wildcards are not supported. In my own testing, they can be used.

[1] https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/new-pssessionconfigurationfile?view=powershell-7.4#example-5-create-a-sample-configuration-file [2] https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/new-pssessionconfigurationfile?view=powershell-7.4#-visiblecmdlets

Page URL

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/new-pssessionconfigurationfile?view=powershell-7.4

Content source URL

https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.4/Microsoft.PowerShell.Core/New-PSSessionConfigurationFile.md

Author

@sdwheeler

Document Id

42085b58-d562-bd87-2d61-51e5c73f35ea