Microsoft Office Tutorials and References
In Depth Information
Activating directory synchronization with Windows PowerShell
10. Rerun dsquery , as depicted in Step 3, to confirm that the AD schema is now version
14734, as shown in Figure 4-6.
Figure 4-6 AD schema extended for Exchange 2010 SP2.
Now that the AD schema has been extended for Exchange 2010 SP3, you can proceed with
activating directory synchronization for the Office 365 tenant.
Activating directory synchronization with Windows
PowerShell
To activate directory synchronization, follow these steps:
1. Start the Online Services Windows PowerShell module.
2. Enter the following command, which will produce a logon prompt for a user name
and a password:
$cred = Get-Credential
The credentials you provide will be stored in a variable called $cred . When you see
the logon prompt, provide your Office 365 Global Administrator account. Remember
that saving the credentials to a variable is optional because you can connect to Office
365 through Windows PowerShell just by using the Connect-MsolService command.
Storing the credentials in a variable is needed for managing Exchange Online with
Windows PowerShell and other scripting scenarios, so we are including this step to
stay consistent with all the examples throughout the book.
3. Enter the following command, which will attempt to connect and authenticate to an
Office 365 tenant using the logon credentials that you stored in $ cred :
Connect-MsolService -Credential $cred
4. Finally, enter the following command to activate directory synchronization for the
tenant:
Set-MsolDirSyncEnabled –EnableDirSync $true
Search JabSto ::




Custom Search