Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Severity Level: Warning
Description
This rule detects commands that are invoked without their required mandatory parameters. When you call a command, it must be invoked with the correct syntax and all mandatory parameters specified. Missing required parameters can cause commands to fail or behave unexpectedly.
Example
Noncompliant
Function Set-TodaysDate ()
{
Set-Date
...
}
Compliant
Function Set-TodaysDate ()
{
$date = Get-Date
Set-Date -Date $date
...
}