Connect to Exchange Online PowerShell
Exchange Online PowerShell Modunle
You need install Exchange Online module only once. In the next time, run to connect to Exchange Online PowerShell.
##Connect to Exchange Online Powershell.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine -Force;
Install-PackageProvider -Name NuGet -Force;
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted;
Install-Module -Name ExchangeOnlineManagement;
Import-Module ExchangeOnlineManagement;
Connect-ExchangeOnline;
Get-TransportConfig | Format-List SmtpClientAuthenticationDisabled
Enable SMTP AUTH for specific mailboxes
Set-CASMailbox -Identity chris@leoguides.info -SmtpClientAuthenticationDisabled $false
Enable SMTP AUTH on multiple mailboxes
Use a text file to identify the mailboxes. Values that don’t contain spaces (for example, alias, email address, or account name) work best. The text file must contain one mailbox on each line like this:
akol@contoso.com
tjohnston@contoso.com
kakers@contoso.com
$users = Get-Content "C:\Temp\users.txt"
$users | foreach {Set-CASMailbox -Identity $_ -SmtpClientAuthenticationDisabled $false}
Enable SMTP AUTH in your organization
Set-TransportConfig -SmtpClientAuthenticationDisabled $false
How do you know this worked?
Get-CASMailbox -Identity chris@leoguides.info | Format-List SmtpClientAuthenticationDisabled
5/5 - (1 vote)