@@ -51,11 +51,11 @@ function Invoke-CIPPStandardAntiPhishPolicy {
5151 param ($Tenant , $Settings )
5252 # #$Rerun -Type Standard -Tenant $Tenant -Settings $Settings 'AntiPhishPolicy'
5353
54- $PolicyName = ' Default Anti-Phishing Policy'
54+ $PolicyName = @ ( ' Default Anti-Phishing Policy' , ' Office365 AntiPhish Default (Default) ' )
5555
5656 $CurrentState = New-ExoRequest - tenantid $Tenant - cmdlet ' Get-AntiPhishPolicy' |
57- Where-Object - Property Name -EQ $PolicyName |
58- Select-Object Name, Enabled, PhishThresholdLevel, EnableMailboxIntelligence, EnableMailboxIntelligenceProtection, EnableSpoofIntelligence, EnableFirstContactSafetyTips, EnableSimilarUsersSafetyTips, EnableSimilarDomainsSafetyTips, EnableUnusualCharactersSafetyTips, EnableUnauthenticatedSender, EnableViaTag, AuthenticationFailAction, SpoofQuarantineTag, MailboxIntelligenceProtectionAction, MailboxIntelligenceQuarantineTag, TargetedUserProtectionAction, TargetedUserQuarantineTag, TargetedDomainProtectionAction, TargetedDomainQuarantineTag, EnableOrganizationDomainsProtection
57+ Where-Object - Property Name -In $PolicyName |
58+ Select-Object Name, Enabled, PhishThresholdLevel, EnableMailboxIntelligence, EnableMailboxIntelligenceProtection, EnableSpoofIntelligence, EnableFirstContactSafetyTips, EnableSimilarUsersSafetyTips, EnableSimilarDomainsSafetyTips, EnableUnusualCharactersSafetyTips, EnableUnauthenticatedSender, EnableViaTag, AuthenticationFailAction, SpoofQuarantineTag, MailboxIntelligenceProtectionAction, MailboxIntelligenceQuarantineTag, TargetedUserProtectionAction, TargetedUserQuarantineTag, TargetedDomainProtectionAction, TargetedDomainQuarantineTag, EnableOrganizationDomainsProtection
5959
6060 $StateIsCorrect = ($CurrentState.Name -eq $PolicyName ) -and
6161 ($CurrentState.Enabled -eq $true ) -and
@@ -82,8 +82,8 @@ function Invoke-CIPPStandardAntiPhishPolicy {
8282 $AcceptedDomains = New-ExoRequest - tenantid $Tenant - cmdlet ' Get-AcceptedDomain'
8383
8484 $RuleState = New-ExoRequest - tenantid $Tenant - cmdlet ' Get-AntiPhishRule' |
85- Where-Object - Property Name -EQ " CIPP $PolicyName " |
86- Select-Object Name, AntiPhishPolicy, Priority, RecipientDomainIs
85+ Where-Object - Property Name -EQ " CIPP $PolicyName " |
86+ Select-Object Name, AntiPhishPolicy, Priority, RecipientDomainIs
8787
8888 $RuleStateIsCorrect = ($RuleState.Name -eq " CIPP $PolicyName " ) -and
8989 ($RuleState.AntiPhishPolicy -eq $PolicyName ) -and
0 commit comments