365-PSScripts/Disable-DMARCTransportRules.ps1
2023-12-18 18:18:35 +00:00

10 lines
204 B
PowerShell

$LogonEmail = Read-Host "Enter Logon Email"
Connect-ExchangeOnline -UserPrincipalName $LogonEmail
Disable-TransportRule -Identity "*DMARC*"
Get-TransportRule
Disconnect-ExchangeOnline -Confirm:$false