Misleading help about CommonParameters for not advanced functions or scripts - by Roman Kuzmin

Status : 


Sign in
to vote
ID 773483 Comments
Status Active Workarounds
Type Bug Repros 1
Opened 12/4/2012 9:46:51 PM
Access Restriction Public


The following script defines a not advanced function and gets help for it:

    .Parameter Param1
    function Test-Help ($Param1)

    Get-Help Test-Help -Full

Note the help section CommonParameters:

        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer and OutVariable. For more information, see
        about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

This section is misleading because not advanced functions or cmdlets do not
support these parameters. Using these parameters results in errors.
Sign in to post a comment.