Following my previous post about the upgrade process from DirSync to AAD Connect (which failed), I decided to go ahead and uninstall DirSync to do a fresh install of AAD Connect.

So let start a fresh install by accepting the license agreement

image 

Then you have the choice to do an Express configuration – which synchronize identities, password and all attributes from the current directory (based on the domain membership of the server) – or do a Custom configuration which let you decide what do synchronize

image 

For the next steps, I choose to do a custom configuration

With the custom configuration you can choose to use a SQL instance (instead of using the SQL Express provided with the tool), define custom installation location, define your own FIN groups

If you choose to define your the service account (used to start the service not to synchronize your directory – even if you can use it for both it is always recommended to use dedicated account for each task) you have to use the following format domain\useraccount – UPN format is not accepted

I choose to define my own service account (to run the synchronization service) and use a SQL instance

imageimage 

Then when you start the installation, the wizard installs additional prerequisites like the sign-in assistant

As I choose to use SQL instance, it also creates the ADSync database on SQL and grants appropriate permission for the service account I defined

NOTE i f you uninstall AAD Connect and where using an SQL instance, the ADSync database will be also deleted

image 

At the next step, you can define which authentication methods you want to use between password synchronization, federation or nothing (meaning you need to define the user’s password on Azure AD/Office 365)

image 

I choose Password Synchronization – I already have ADFS configured and in use, so want to check what will happen there

Then you have to enter your global administrator credentials – as always it is recommended to have setup a dedicated account on your tenant with complex password which never expires

image 

Then it connects to the tenant, validates the credentials and the account role

At the next step you can select which On Premises AD Forest you want to synchronize – if you have only one, that’s easy, if you have more than one you can add them here; strangely you have to manually enter the other AD forest in the FOREST field while with beta/preview version you were able to select them directly using the drop-down menu

The account does not need anymore to be Enterprise Admin BUT need to have permission to manage user and groups objects

image 

Then it checks your directory schema and validates if it meets the prerequisites for synching with Azure Active Directory

If you are going to synchronize multiple AD Forest, you have to define the way to uniquely identity each identity against each directory services

image 

Then you can synchronize the entire directory or select filtering options based on AD groups – this option can be helpful if you are planning a pilot

Do not forget you will be still able to do filtering based on OU or attributes later using the FIM console

image 

Finally you can choose to enable additional features like Exchange Hybrid configuration, password write back…

image 

In my case I enabled Exchange Hybrid, password write back (which requires AAD Premium) and also the new (still in preview) user and group write back (will covers this later in this post)

Then once you have selected (and configured) the additional features, you can check which AD attributes will be synchronized – you can check them using a CSV export

You can even unselect some of them using the I want to further limit the attributes exported to Azure AD and then uncheck the attributes you want

NOTE you will not be able to uncheck mandatory attributes like userprincipalname, accountenabled…

image 

That’s it, you are ready to finalize the configuration. I would recommend to uncheck the Start synchronization if you want to configure OU based filtering

Unchecking this option will disable the scheduled task. Don’t forget to enable it after having configured your OU based filtering

image 

Also, you can enable the Staging option which will let you check what will be synched to Azure AD BUT will not export anything

This useful if you are planning a pilot or preparing the deployment of AAD Connect in parallel of other running instance (DirSync)

imageimageimage 

 To start a manual synchronization, there is no more any PowerShell command but a command line tool – see http://blog.hametbenoit.info/Lists/Posts/Post.aspx?ID=661

Console Location

With Azure AD Connect, the console which allows you to check the synchronization progress as well as to define OU based filtering is now located within the C:\Program Files\Microsoft Azure AD Sync\UIShell folder and you have to use miisclient.exe to start it

As usual you have to logoff after installing the tool to be able to use the console

imageimageimage 

 

Groups and Users Writeback

Groups and Users Writeback is new with ADD Connect and allows you to create groups and users object on your On Premises Active Directory based on objects initially created on Azure Active Directory

If you enable this feature, you have to define where this “written back” group and user objects have to be created on your AD. AAD User will have a randomly generated password set your on AD, so you will have to reset to a known password after their creation.

Password write back is not available for these objects, meaning their cloud password is not synchronized back on your AD.

image 

 

Device Writeback

If the device writeback is disabled this may be because you need to prepare your AD forest.
Also seems there is still some defect as this feature also comes with ADFS 3.0 and device registration; if you have setup ADFS 3.0 for device registration, you have nothing to do but the option is still unavailable

To prepare the forest, you need to run a PowerShell command prompt (still using Run As Administrator) and execute the AdSyncPrep.psm1 located within the default installation folder C:\Program Files\Microsoft Azure Active Directory Connect\AdPrep. Also you need to execute this command with an Enterprise Admin account

Then you have to execute the following command to enable device writeback Initialize-ADSyncDeviceWriteBack

You will be asked to enter the domain to be prepared and the AD connector account – the one you defined when you connect to your On Premises AD services

image 

NOTE seems there has been another change since the beta/preview builds as you have to reconfigure what you already have defined. This was not the case with the beta/preview builds

Bulk Deletion Prevention

By default, AAD Connect now has bulk deletion prevention enabled BUT with a high threshold set to 500 objects; meaning of less than 500 objects are deleted on AD, this will be synched back to Azure AD.

If you want to either disable – run the following command Disable-ADSyncExportDeletionThreshold – or change the threshold value – run this command Enable-ADSyncExportDeletionThreshold, you then will be asked to enter your Azure AD credentials and the new threshold value (or use the complete command Enable-ADSyncExportDeletionThreshold –DeletionThreshold <value>