Microsoft_DomainTrustStatus class
The Microsoft_DomainTrustStatus WMI class contains information about a trusted domain.
Windows XP and earlier: This class is not available.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of its inherited properties. Properties and methods are in alphabetic order, not MOF order.
Syntax
class Microsoft_DomainTrustStatus
{
string TrustedDomain;
string FlatName;
string SID;
uint32 TrustDirection;
uint32 TrustType;
uint32 TrustAttributes;
string TrustedDCName;
uint32 TrustStatus;
string TrustStatusString;
boolean TrustIsOK;
};
Members
The Microsoft_DomainTrustStatus class inherits from the IUnknown interface. Microsoft_DomainTrustStatus also has these types of members:
Properties
The Microsoft_DomainTrustStatus class has these properties.
- FlatName
-
- Data type: string
- Access type: Read-only
Domain name used with systems running versions of Windows before Windows 2000.
- SID
-
- Data type: string
- Access type: Read-only
Security identifier for the domain.
- TrustAttributes
-
- Data type: uint32
- Access type: Read-only
Attributes can be a combination of the values listed in the following table.
Value Meaning - 0x1
Nontransitive
- 0x2
Uplevel clients only
- 0x40000
Tree parent
- 0x80000
Tree root
- TrustDirection
-
- Data type: uint32
- Access type: Read-only
Direction of trust.
Value Meaning - 1
Inbound
- 2
Outbound
- 3
Bidirectional
- TrustedDCName
-
- Data type: string
- Access type: Read-only
Name of the trusted domain's domain controller.
- TrustedDomain
-
- Data type: string
- Access type: Read-only
- Qualifiers: Key
Domain name.
- TrustIsOK
-
- Data type: boolean
- Access type: Read-only
Reserved.
- TrustStatus
-
- Data type: uint32
- Access type: Read-only
Error code of trust failure. A value of 0 (zero) indicates no failure.
- TrustStatusString
-
- Data type: string
- Access type: Read-only
Description of trust status.
- TrustType
-
- Data type: uint32
- Access type: Read-only
Type of trust.
Value Meaning - 1
Downlevel
- 2
Uplevel
- 3
Kerberos realm
- 4
DCE
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | None supported [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Namespace |
\root\microsoftactivedirectory |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012
