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;
Enable-OrganizationCustomization
Assign the role for the individual user account
New-ManagementRoleAssignment `
–Role "Mailbox Import Export" `
–User chris@leoguides.info
Add this role to existing management role group
New-ManagementRoleAssignment `
-Role "Mailbox Import Export" `
-SecurityGroup "Organization Management" `
-Name "Import Export Org Management"
Find who has access to Mailbox Import Export role
Get-ManagementRoleAssignment –Role "Mailbox Import Export" | FL RoleAssigneeName, Name
Remove Management Role Assignment
Remove-ManagementRoleAssignment "Import Export Org Management" -Confirm:$false
Disconnect-ExchangeOnline
Connect to Microsoft Teams PowerShell
Microsoft Teams PowerShell Modunle
You need install Microsoft Teams module only once. In the next time, run to connect to Microsoft Teams PowerShell.
##Install Modunle and Connect to Microsoft Teams
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine -Force;
Install-PackageProvider -Name NuGet -Force;
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted;
Install-Module -Name MicrosoftTeams;
Update-Module -Name MicrosoftTeams;
Connect-MicrosoftTeams
5/5 - (1 vote)