How to list domains protected by Anti-phishing Policy using PS?

Oleg Tserkovnyuk 671 Reputation points
2021-12-01T10:21:32.78+00:00

When I configure Anti-phishing Policy (https://security.microsoft.com > "Policies and Rules" > "Threat policies" > "Anti-phishing"), on the second screen (Users, groups, and domains) I need to specify user, groups or domains I want to protect.
Later I cannot find this information in properties of the policy using PS. All other settings from next screens are available. Information is visible from the web console.
How can I get list of domains protected by the policy using PS?

Microsoft 365 and Office | Development | Microsoft 365 Publishing
Microsoft Security | Microsoft Defender | Microsoft Defender for Cloud
{count} votes

1 answer

Sort by: Most helpful
  1. Oleg Tserkovnyuk 671 Reputation points
    2021-12-06T09:14:11.307+00:00

    Answering my own question. Protected domains can be listed by command Get-AntiPhishRule. All other options can be retrieved using command Get-AntiPhishPolicy.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.