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

An authentication error has occurred (Code: 0x80004005)

Symptom: [Window Title]Remote Desktop Connection[Content]An authentication error has occurred (Code: 0x80004005).Remote computer: 192.168.1.54[OK] Cause: This…

How to recreate user profile on Windows 7

Method 1: You can do it with the User Profiles dialog in System Properties: Log…

PowerShell: Remediate Microsoft Windows Unquoted Service Path Enumeration

Description The remote Windows host has at least one service installed that uses an unquoted…