Property Name
PrimaryDomain
Property Type
String
Description
Gets or sets the name of the Primary Domain for a Computer
Remarks
Changing the Primary Domain of a computer can make it unusable if
the domain does not have an account for the computer or if it is
not in the list of trusted domains for the computer.
Example
Dim Policy As IADsNTPolicy
'Get the interface
Set Policy = GetObject "NTDS://DomainName/MachineName"
'Show the name of the current Primary Domain
Debug.Print Policy.PrimaryDomain
See Also