Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import EXOAntiPhishPolicy don't want to get default #1582

Closed
LeroyJDS opened this issue Nov 23, 2021 · 0 comments · Fixed by #1623 or #1627
Closed

import EXOAntiPhishPolicy don't want to get default #1582

LeroyJDS opened this issue Nov 23, 2021 · 0 comments · Fixed by #1623 or #1627
Labels
Bug Something isn't working Exchange Online

Comments

@LeroyJDS
Copy link

Hello,

created the next script for AntiPhishing policy but after i import the policy it don't set it on default.

Can some one look what i'm doing wrong or maybe a bug?

    EXOAntiPhishPolicy 4cbf5b17-42db-42df-b9a4-752a4bd57990
    {
        AdminDisplayName                              = "";
        AuthenticationFailAction                      = "Quarantine";
        Credential                                    = $Credscredential;
        Enabled                                       = $True;
        EnableFirstContactSafetyTips                  = $True;
        EnableMailboxIntelligence                     = $True;
        EnableMailboxIntelligenceProtection           = $False;
        EnableOrganizationDomainsProtection           = $null;
        EnableSimilarDomainsSafetyTips                = $True;
        EnableSimilarUsersSafetyTips                  = $False;
        EnableSpoofIntelligence                       = $True;
        EnableTargetedDomainsProtection               = $False;
        EnableTargetedUserProtection                  = $False;
        EnableUnauthenticatedSender                   = $True;
        EnableUnusualCharactersSafetyTips             = $True;
        EnableViaTag                                  = $True;
        Ensure                                        = "Present";
        ExcludedDomains                               = @();
        ExcludedSenders                               = @();
        Identity                                      = "Office365 AntiPhish Default";
    MakeDefault                                   = $True;
        ImpersonationProtectionState                  = "Automatic";
        MailboxIntelligenceProtectionAction           = "NoAction";
        MailboxIntelligenceProtectionActionRecipients = @();
        PhishThresholdLevel                           = 1;
        TargetedDomainActionRecipients                = @();
        TargetedDomainProtectionAction                = "Quarantine";
        TargetedDomainsToProtect                      = @();
        TargetedUserActionRecipients                  = @();
        TargetedUserProtectionAction                  = "NoAction";
        TargetedUsersToProtect                        = @();

Solved with a workaround but when i check the example it's should be correct.

workaround:

$Credscredential = Get-Credential -Message "Credentials"
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -Credential $Credential
Set-AntiPhishPolicy -Identity "Office365 AntiPhish Default" -MakeDefault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Exchange Online
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants