DC Locator flags for Windows Server 2012 and Windows Server 2012 R2

Posted: 1st July 2013 by Christoffer Andersson in Uncategorized

The DC Locator flags to specify the requirements of a Windows Server 2012 DC or a Windows Server 2012 R2 DC using the DsGetDCName API are as following:

Table 1: Windows Server 2012 DC Locator flags

Name

 

DS_DIRECTORY_SERVICE_8_REQUIRED
(
0×200000)

Requires that the returned domain controller be running Windows Server 2012 or later.

DS_DIRECTORY_SERVICE_9_REQUIRED
(
0×400000)

Requires that the returned domain controller be running Windows Server 2012 R2 or later.