To verify the installation of the Office 365 admin tools, we can check the connection to the Office 365 subscription in a three-step process:
- First, we need to import the module into the PowerShell session. This step is optional depending on which PowerShell module you use. We need this step if we start Windows PowerShell, but it is not required if we start the Windows Azure Active Directory Module for Windows PowerShell.
- The second step is to get the credentials of the user.
- The third step is to establish the connection.
Now let's perform these steps:
- In the PowerShell Session, type the following cmdlet:
Import-Module MSOnline
- In the PowerShell session, type this cmdlet:
$cred ...