Steps to Get O365 exchange online on PowerShell



What do you need to know before you begin?

How to get an exchange online on Powershell?


As step 1 Install and maintain the EXO V2 module from the below URL.


https://www.powershellgallery.com/packages/ExchangeOnlineManagement/2.0.5


Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.5


Copy and Paste the above command to install this package using PowerShellGet



As step 2 install OpenSSL from below URL

https://slproweb.com/products/Win32OpenSSL.html

Once both the steps are completed, let's dive into the power shell.


Step 1: run power shell as administrator

Step 2: execute the below commands

install-module -name pswsman

         Set-ExecutionPolicy RemoteSigned

         Install-Module -Name ExchangeOnlineManagement  

         Import-Module ExchangeOnlineManagement  

         Connect-ExchangeOnline -UserPrincipalName (enter your O365 admin ID)

Step 3: Once successful execution of PowerShell commands, you will get the below output.

----------------------------------------------------------------------------

The module allows access to all existing remote PowerShell (V1) cmdlets in addition to the 9 new, faster, and more reliable cmdlets.

|--------------------------------------------------------------------------|

|    Old Cmdlets                    |    New/Reliable/Faster Cmdlets       |

|--------------------------------------------------------------------------|

|    Get-CASMailbox                 |    Get-EXOCASMailbox                 |

|    Get-Mailbox                    |    Get-EXOMailbox                    |

|    Get-MailboxFolderPermission    |    Get-EXOMailboxFolderPermission    |

|    Get-MailboxFolderStatistics    |    Get-EXOMailboxFolderStatistics    |

|    Get-MailboxPermission          |    Get-EXOMailboxPermission          |

|    Get-MailboxStatistics          |    Get-EXOMailboxStatistics          |

|    Get-MobileDeviceStatistics     |    Get-EXOMobileDeviceStatistics     |

|    Get-Recipient                  |    Get-EXORecipient                  |

|    Get-RecipientPermission        |    Get-EXORecipientPermission        |

|--------------------------------------------------------------------------|

To get additional information, run: Get-Help Connect-ExchangeOnline or check https://aka.ms/exops-docs

Send your product improvement suggestions and feedback to exocmdletpreview@service.microsoft.com. For issues related to the module, contact Microsoft support. Don't use the feedback alias for problems or support issues.

----------------------------------------------------------------------------

Step 4: Execute the command to manage folder assistant

$Mailboxes = Get-Mailbox -ResultSize Unlimited -Filter {RecipientTypeDetails -eq "UserMailbox"}

$Mailboxes.Identity | Start-ManagedFolderAssistant

Successfully completed.