Trying to import session into PowerShell for Office 365 gives you an error (no admin access)

Problem: You’re trying to connect to Office 365 through powershell and when you setup the session, it gives you an error that you don’t have sufficient rights. Solution: Odds are MFA is enabled across board. One way to tell, is Continue reading Trying to import session into PowerShell for Office 365 gives you an error (no admin access)

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