IADsNTPolicy Property: AccountDomain

Property Name
AccountDomain

Property Type
String

Description
Gets the name of the Account Domain for a Computer

Remarks
For primary Domain Controllers (PDCs), PrimaryDomain and AccountDomain return the same value.

Example

Dim Policy As IADsNTPolicy
'Get the interface
Set Policy = GetObject "NTDS://DomainName/MachineName"
'Show the name of the current Account Domain
Debug.Print Policy.AccountDomain

 

See Also