Error:
Cannot convert argument "Level", with value: "", for "SetResult" to type "ORCAConfigLevel": "Cannot convert null to type "ORCAConfigLevel" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "None,Standard,Strict,TooStrict,All".
Locations:
- MethodException: C:. . . \Documents\PowerShell\Modules\ORCA\2.8.1\Checks\check-ORCA223.ps1:99
- MethodException: C:. . . \Documents\PowerShell\Modules\ORCA\2.8.1\Checks\check-ORCA222.ps1:155
Code:
<snipped>
If($TargetedUserProtectionAction -eq "Delete" -or $TargetedUserProtectionAction -eq "Redirect")
{
99: -> $ConfigObject.SetResult([ORCAConfigLevel]::Informational,"Fail")
$ConfigObject.InfoText = "The $($Policy.TargetedUserProtectionAction) option may impact the users ability to release emails and may impact user experience."
}
<snipped>
Code:
<snipped>
If($TargetedDomainProtectionAction -eq "Delete" -or $TargetedDomainProtectionAction -eq "Redirect")
{
# For either Delete or Quarantine we should raise an informational
155: -> $ConfigObject.SetResult([ORCAConfigLevel]::Informational,"Fail")
$ConfigObject.InfoText = "The $($TargetedDomainProtectionAction) option may impact the users ability to release emails and may impact user experience."
}
<snipped>
Error:
Cannot convert argument "Level", with value: "", for "SetResult" to type "ORCAConfigLevel": "Cannot convert null to type "ORCAConfigLevel" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "None,Standard,Strict,TooStrict,All".
Locations:
Code:
Code: