We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8efb0fa commit 7fe8e7eCopy full SHA for 7fe8e7e
AutoRuns.psm1
@@ -461,7 +461,10 @@ Begin {
461
)
462
Begin {
463
## Add 'All' if nothing else was supplied
464
- if(($PSBoundParameters.Keys | ? { $_ -notin "ShowFileHash","VerifyDigitalSignature" }).Count -eq 0)
+ $parametersToIgnore = ("ShowFileHash","VerifyDigitalSignature") +
465
+ [System.Management.Automation.PSCmdlet]::CommonParameters +
466
+ [System.Management.Automation.PSCmdlet]::OptionalCommonParameters
467
+ if(($PSBoundParameters.Keys | ? { $_ -notin $parametersToIgnore }).Count -eq 0)
468
{
469
$All = [switch]::Present
470
}
0 commit comments