1. Open Windows PowerShell as an administrator (use Run as administrator) on any machine which has Internet connection.

  2. Run the command below, and enter your Office 365 admin account credentials.


    $credential = Get-Credential

  3. If the Azure Active Directory PowerShell has not been installed on the machine, then you can install the module with the Install-Module cmdlet:

    Install-Module MSOnline
    Import-Module MsOnline


  4. Run the command below to connect to Office 365.


    Connect-MsolService -Credential $credential


  • No labels