Forum Discussion

vindi4i's avatar
vindi4i
Copper Contributor
Dec 03, 2021

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

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?

  • Answering my own question. Protected domains can be listed by command Get-AntiPhishRule. All other options can be retrieved using command Get-AntiPhishPolicy.
  • vindi4i's avatar
    vindi4i
    Copper Contributor
    Answering my own question. Protected domains can be listed by command Get-AntiPhishRule. All other options can be retrieved using command Get-AntiPhishPolicy.

Resources