Commands › Exchange Online

Get-MalwareFilterRule

Exchange Online ExchangeOnlineManagement Get-*

View malware filter rules in your organization.

Quick start script

# Get-MalwareFilterRule — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-MalwareFilterRule | Format-List

# 3. Export for evidence / drift tracking
Get-MalwareFilterRule | Export-Clixml .\MalwareFilterRule-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-MalwareFilterRule [[-Identity] <RuleIdParameter>]
 [-DomainController <Fqdn>]
 [-State <RuleState>]
 [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-Identity RuleIdParameter The Identity parameter specifies the malware filter rule that you want to view. You can use any value that uniquely identifies the rule. For example, you can use the name, GUID or distinguished name (DN) of the...
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-State RuleState The State parameter filters the results by enabled or disabled malware filter rules. Valid input for this parameter is Enabled or Disabled.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.