Skip this section and refer to the next section if you choose to install directory synchronization with WID.
Otherwise, follow these steps:
1. Navigate to the location where you downloaded the Directory Sync tool and launch it with the /fullsql parameter:
Dirsync /fullsql
2. You will see a progress bar as files are being extracted. The Welcome page of the Directory Sync Setup Wizard will appear, as shown in Figure 4-12. Click Next.
Figure 4-12. Welcome page of the Directory Sync Setup Wizard.
3. Read and accept the Microsoft Software License Terms for the Directory Sync tool. Select I accept and click Next, as shown in Figure 4-13.
Figure 4-13. Microsoft Software License Terms for the Directory Sync tool.
4. Specify the location to install directory synchronization or choose the default location, as shown in Figure 4-14. Click Next.
Figure 4-14. Specify the directory synchronization installation folder.
5. After the directory synchronization components have been installed, click Next, as shown in Figure 4-15.
Figure 4-15. Click Next after the installation is complete.
6. As shown in Figure 4-16, after setup is complete, the Finished page appears with confirmation that you installed directory synchronization with the /FullSQL option. It also directs you to instructions provided by Technical Support to complete the directory synchronization configuration. The Start
Configuration Wizard now option is not available. Click Next.
Figure 4-16. Directory synchronization setup Finished page.
7. Install the SQL Server Native Client on the directory synchronization server by running sqlncli.msi or by installing the client and administration tools. The sqlncli.msi is located in the \setup directory of your SQL Server installation package or DVD. Click Next at the Welcome page, as shown in Figure 4-17.
NOTE
For more information about installing the SQL Server Native Client, see http://technet.microsoft.com/en-us/library/ms131321(v=SQL.105).aspx.
Figure 4-17. Welcome page for the Installation Wizard of the SQL Server 2008 R2 Native Client Installation Wizard.
8. Read and accept the Microsoft Software License Terms, then click Next.
9. As shown in Figure 4-18, accept the default, which is to install the Client Components but not the SQL Server Native Client SDK. Click Next.
Figure 4-18. Install Client Components. The SDK is not required.
10. When the SQL Server Native Client Setup is completed, click OK to end the installation.
11. On the computer where directory synchronization is installed, navigate to the directory where
directory synchronization is installed. In our example, we used the default directory during installation, which is C:\Program Files\Windows Azure Active Directory Sync.
12. Locate the file named DirsyncInstallshell.psc1, as shown in Figure 4-19, and double-click it.
Figure 4-19. Locate and double-click DirSyncinstallshell.psc1.
13. As shown in Figure 4-20, at the Windows PowerShell prompt, enter the following command to configure directory synchronization for use with a dedicated computer running a SQL Server installation and instance:
Install-OnlineCoexistenceTool -UseSQLServer -SqlServer <SQLServerName>
-ServiceCredential(Get-Credential) -SqlServerInstance < >
Figure 4-20 shows our demo environment; in this example, our computer running SQL Server is named sql.thomsonhills.com and the SQL instance is named CorpSQL. Substitute these values for ones that apply to your environment.
Figure 4-20. Enter the Install-OnlineCoexistenceTool command with SQL parameters.
INSIDE OUT: OT HER DIRECT ORY SYNCHRONIZAT ION INSTALLAT ION OPT IONS IF YOU CHANGE YOUR M IND
If at this time you change your mind and would like to install directory synchronization using other database options, it is still not too late. Use one of these options:
To configure directory synchronization to use a dedicated computer running SQL Server, enter the following:
Install-OnlineCoexistenceTool -UseSQLServer -SqlServer <SQLServerName>
-ServiceCredential(Get-Credential) -SqlServerInstance <SqlInstanceName>
To configure directory synchronization to use a different remote installation of SQL Server 2008 Express, enter the following:
Install-OnlineCoexistenceTool -UseSQLServer -SqlServer <SQLServerName>
-ServiceCredential(Get-Credential) -Verbose
To configure directory synchronization to use an existing SQL Server 2008 Express installation that is already on the same machine, enter the following:
Install-OnlineCoexistenceTool -UseSQLServer -Verbose
14. When you see the logon window, as shown in Figure 4-21, provide your SQL Server logon credentials.
Figure 4-21. Logon prompt for SQL Server.
15. When the directory synchronization database is successfully created, you will see a screen notifying you to log off and log back on to receive the proper administrative access for directory
synchronization. Go ahead and log off and log back on to the directory synchronization server, as shown in Figure 4-22.
T ROUBLESHOOT ING: DIRECT ORY SYNCHRONIZAT ION GENERAT ES AN ERROR WHEN CONNECT ING T O T HE REM OT E SQL DATABASE
If directory synchronization generates an error when connecting to the remote SQL database and you are sure your logon credentials are correct, the SQL Server Native Client might not have been properly installed. You might also find an entry in the event log with error number 1603. Check that the SQL Server Native Client has been installed (see Step 7). Make sure that the .NET Framework 3.5.1 has also been installed.
Figure 4-22. Directory synchronization finished creating the database, with a warning.
16. Confirm that the directory synchronization database was created. Log on to your SQL server and start the Microsoft SQL Server Management Studio, or if you have the SQL management tools installed on your workstation, start the Microsoft SQL Server Management Studio on your workstation and remotely connect to the SQL server.
17. The database was successfully created if you see the FIMSynchronizationService database, as shown in Figure 4-23.
Directory synchronization installation is now complete. At this point, you should have completed the following tasks:
Installed directory synchronization on a dedicated computer running SQL Server Verified that the directory synchronization database was created successfully
Figure 4-23. SQL Server Management Studio showing the FIMSynchronizationService database.
The next section outlines the steps required to install directory synchronization with WID. If you have installed directory synchronization on a dedicated computer running SQL server, you can skip the next section and go to the Configuring directory synchronization section.