365-PSScripts/Disable-DMARCTransportRules.ps1

10 lines
204 B
PowerShell
Raw Normal View History

2023-12-18 18:18:35 +00:00
$LogonEmail = Read-Host "Enter Logon Email"
Connect-ExchangeOnline -UserPrincipalName $LogonEmail
Disable-TransportRule -Identity "*DMARC*"
Get-TransportRule
Disconnect-ExchangeOnline -Confirm:$false