Installing the Azure Active Directory module for Windows PowerShell
If you use Folder Sync in Office 365 or hybrid environments, the servers on which you install Folder Sync require the Microsoft Azure Active Directory module for Windows PowerShell.
Note: The following procedure requires the credentials of the Folder Sync Office 365 administrator account. SeeService account and administration account requirements for Folder Sync.
To install the Azure Active Directory module for Windows PowerShell
-
Download the latest 64-bit version of PackageManagement.
-
Install the package on the server or servers on which you want to run Folder Sync.
-
Open Windows PowerShell as an administrator and run the following command to install the MsOnline module.
Install-Module -Name MSOnline
If you are prompted to install the NuGet provider, enter
Y.
If you are prompted to install the modules from the PSGallery, enter
Y.
-
When the package has installed, enter the following command to connect to Azure Active Directory:
Connect-MsolService
You need to provide the credentials of the Folder Sync Office 365 administrator account.
-
To confirm that the installation has worked, run an Office 365 cmdlet, such as the following:
Get-MsolUser
Related information