Adding Users to O365 Distribution List

By admin

A script I recently used to add members to an office 365 distribution group using a remote exchange session in a hybrid setup (covered at the end).  $SourceFile = "" Import-CSV $SourceFile | ForEach ` {Add-DistributionGroupMember -Identity "Group Name" -Member $_.UPN Write-Host -ForegroundColor Green "Processed the record for $($_.UPN)" } CSV file contains UPNs of…

Add New Users using Exchange Admin Center (Exchange 2016)

By admin

This only applies to new Active Directory users.  To look at how to use SMTP matching to link an on-prem user to an existing O365 mailbox in a hybrid environment follow this guide.1. Log into the Exchange Admin Center: https://mail.contoso.com/ecp2. In the EAC console of your on-premises hybrid server, go to Recipients > Mailboxes and click…

Set O365 Password to never expire for just one user

By admin

Recently I needed to do this for our PRTG alerting account which was failing to send notifications as the O365 password had expired.  I did this from Powershell within Windows 10 as follows: Launch powershell as Administrator then run Install-Module MsOnline Then run Connect-MsOlService at this point an O365 authentication box pops up – enter…