ReservedParams
Severity Level: Error
Description
You can't redefine common parameters in an advanced function. Using the CmdletBinding
or
Parameter
attributes creates an advanced function. The common parameters are are automatically
available in advanced functions, so you can't redefine them.
How
Change the name of the parameter.
Example
Wrong
function Test
{
[CmdletBinding()]
Param
(
$ErrorVariable,
$Parameter2
)
}
Correct
function Test
{
[CmdletBinding()]
Param
(
$Err,
$Parameter2
)
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for