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
Whenever we call a command, care should be taken that it is invoked with the correct syntax and parameters.
How
Specify all mandatory parameters when calling commands.
Example
Wrong
Function Set-TodaysDate ()
{
Set-Date
...
}
Correct
Function Set-TodaysDate ()
{
$date = Get-Date
Set-Date -Date $date
...
}