AAD Connect PS Module QuickTip

If you want to do configurations like Windows 10 Hybrid Domain join of Office 365 Group Writeback in Azure AD Connect you need to run commands in Powershell to make that happen. But if you have a fresh new server and have just installed AAD Connect on it you will get an error when trying to run the commands necessary. The error is something like this: dsacls.exe : The term ‘dsacls.exe’ is not recognized as the name of a cmdlet, function,  and is coming calling funtions inside “C:\Program Files\Microsoft Azure Active Directory Connect\AdPrep\AdSyncPrep.psm1” .  If we take a look at the function we are trying to run “Initialize-ADSyncDomainJoinedComputerSync” we will see that in fact this function is using dsacls.exe to set rights on OUs in Active Directory.

The solution is simple and easy. To be able to configure these features we need to install the ADDS module for Windows Powershell and ADDS Snap-Ins and and Command-line Tools.


When you have installed this, rerun the command and see the magic happen.




Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s