4.6 Getting Domain Join Information

The variables required for getting domain join information are shown in this example.

Variables in request packet:

VERSION (WDSCPL_VAR_ULONG): 0x00000001

CLIENT_MAC (WDSCPL_VAR_WSTRING): '001122334455'

CLIENT_GUID (WDSCPL_VAR_WSTRING): '11223344556677578058C2C04F503931'

Variables in reply packet:

VERSION (WDSCPL_VAR_ULONG): 0x00000001

FLAGS (WDSCPL_VAR_ULONG): 0x00000003 (WdsCliFlagJoinDomain | WdsCliFlagAccountExists)

MACHINEOU (WDSCPL_VAR_WSTRING): ''

MACHINENAME (WDSCPL_VAR_WSTRING): 'administrator2'

MACHINEDOMAIN (WDSCPL_VAR_WSTRING): 'contoso.com'

MACHINEDN (WDSCPL_VAR_WSTRING): 'CN=administrator2,CN=Computers,DC=contoso,DC=com'

FIRSTNAME (WDSCPL_VAR_WSTRING): 'John'

LASTNAME (WDSCPL_VAR_WSTRING): 'Smith'