Microsoft Office 365 Easily Exchange
Office365 – Exchange Online | Short Notes
Install Exchange Online PowerShell Module
To manage Office365 via PowerShell, you first need to install exchange online PowerShell module.
From your management/admin workstation, Open POWERSHELL (Run as Admin) command prompt, & issue below commands
1 2 | Find-Module -Name ExchangeOnlineManagement Install-Module -Name ExchangeOnlineManagement -Scope AllUsers |
- To check if modules are installed … issue below cmd
1 | Get-Command -Module ExchangeOnlineManagement |
Result:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #PS C:\> Get-Command -Module ExchangeOnlineManagement CommandType Name Version Source ----------- ---- ------- ------ Function Connect-ExchangeOnline 3.0.0 ExchangeOnlineManagement Function Connect-IPPSSession 3.0.0 ExchangeOnlineManagement Function Disconnect-ExchangeOnline 3.0.0 ExchangeOnlineManagement Function Get-WrappedCommand 3.0.0 ExchangeOnlineManagement Function IsCloudShellEnvironment 3.0.0 ExchangeOnlineManagement Function UpdateImplicitRemotingHandler 3.0.0 ExchangeOnlineManagement Cmdlet Get-ConnectionInformation 3.0.0 ExchangeOnlineManagement Cmdlet Get-EXOCasMailbox 3.0.0 ExchangeOnlineManagement Cmdlet Get-EXOMailbox 3.0.0 ExchangeOnlineManagement Cmdlet Get-EXOMailboxFolderPermission 3.0.0 ExchangeOnlineManagement Cmdlet Get-EXOMailboxFolderStatistics 3.0.0 ExchangeOnlineManagement Cmdlet Get-EXOMailboxPermission 3.0.0 ExchangeOnlineManagement Cmdlet Get-EXOMailboxStatistics 3.0.0 ExchangeOnlineManagement Cmdlet Get-EXOMobileDeviceStatistics 3.0.0 ExchangeOnlineManagement Cmdlet Get-EXORecipient 3.0.0 ExchangeOnlineManagement Cmdlet Get-EXORecipientPermission 3.0.0 ExchangeOnlineManagement Cmdlet Get-MyAnalyticsFeatureConfig 3.0.0 ExchangeOnlineManagement Cmdlet Get-UserBriefingConfig 3.0.0 ExchangeOnlineManagement Cmdlet Get-VivaInsightsSettings 3.0.0 ExchangeOnlineManagement Cmdlet Set-MyAnalyticsFeatureConfig 3.0.0 ExchangeOnlineManagement Cmdlet Set-UserBriefingConfig 3.0.0 ExchangeOnlineManagement Cmdlet Set-VivaInsightsSettings 3.0.0 ExchangeOnlineManagement |
*** Connect with Exchange Online
Once you manage to install the above module, Connect to the Exchange Online service using below cmd, (using your admin account)
1 | Connect-ExchangeOnline -UserPrincipalName youradmin@yourdomain.com |
It may ask for confirmation/id , & you will be connected to use different CMD’s as per your requirements,
To confirm if your session is now opened , issue below CMD
1 | Get-PSSession | Select-Object -Property State, Name |
Result:
1 2 3 4 | PS C:\> Get-PSSession | Select-Object -Property State, Name State Name ----- ---- Opened ExchangeOnlineInternalSession_1 |
The term ‘Get-MsolUser’ is not recognized as the name of a cmdlet.
Open Windows PowerShell in administrator mode and run the following command.
1 2 | Install-Module MSOnline -Force Connect-MsolService |
Once you run the above command, it will ask you to enter the credentials, make sure to enter the global Office 365 admin account.
Labels: Netwokingssolution, Network, Office365
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home