Posted On July 27, 2019

PowerShell: Microsoft Exchange to Require that all Senders are Authenticated

kimconnect 0 comments
blog.KimConnect.com >> Windows >> PowerShell: Microsoft Exchange to Require that all Senders are Authenticated

In this scenario, the business decision is to limit exposure of certain internal accounts to only allow those to receive emails from the same “Exchange Organization”. This is an extra measure to improve enterprise security posture by further reducing spams and potential messaging vulnerabilities.

# Set "Require that all senders are authenticated" for one account
$targetUsername="PORequests"
$targetObject = Get-ADUser -Filter 'SamAccountName -eq $targetUsername'
Set-ADUser $targetObject -Replace @{msExchRequireAuthToSendTo = $True}
# Set "Require that all senders are authenticated" for all Distribution Groups
$distributionGroups = Get-ADGroup -Filter 'groupcategory -eq "distribution"'
ForEach ($group In $distributionGroups){
#$group.Name
Set-ADGroup $group -Replace @{msExchRequireAuthToSendTo = $True}
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Active Directory: How to Copy Account

Run: DSA.MSC > navigate to the container of the user to be copied (e.g. Test…

Windows Group Policy: Set Chrome as Default with a Home Page

Opinion: So... your company wants to standardize on Chrome, eh? I must say that I…

Toner Cartridge CF283A vs CF283X

These toners will work with HP Pro MFP M127fw M127fn M125nw M201dw M201n M225dn M225dw…