Office 365 – Get list of all accounts and aliases via PowerShell

Problem: You need a list of all users and aliases Solution: Get-Mailbox | Select-Object DisplayName,@{Name=“EmailAddresses”;Expression={$_.EmailAddresses |W here-Object {$_ -LIKE “SMTP:*”}}} | Sort | Format-List Or ‘ Get-Mailbox | Select-Object DisplayName,@{Name=“EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_ -LIKE “SMTP:*”}}} | Sort | Export-Csv <file path Continue reading Office 365 – Get list of all accounts and aliases via PowerShell

Office 365 – Connecting to PowerShell with MFA

Problem: You enable MFA in your organization and now you can’t connect through PowerShell Solution: (h/t me) Referencing the following doc (https://docs.microsoft.com/en-us/powershell/exchange/exchange-online/connect-to-exchange-online-powershell/mfa-connect-to-exchange-online-powershell?view=exchange-ps) Notes: Use Internet Explorer when you download and run the app Once you download and install the app, Continue reading Office 365 – Connecting to PowerShell with MFA

Office 365 – DKIM

Problem: I need to setup DKIM for Office 365 and eventually for Barracuda Solution:(h/t onDmarc ) http://knowledge.ondmarc.com/microsoft-office-365/office-365-spf-and-dkim-set-up Quick Example: CName: Name: selector2._domainkey.newcompany.com. Data: selector2-newcompany-com._domainkey.newcompany.onmicrosoft.com. 18 items total