Export (0) Print
Expand All

Type Property

Exchange Server 2003

Type Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The Type property indicates the role that the domain controller plays in the Microsoft Exchange system. The Type property is read-write, and is a key property of this class.

Applies To

The Type property is a member of the Exchange_DSAccessDC Class.

Instance Path

The Type property appears on instances of the \\COMPUTERNAME\ROOT\MicrosoftExchangeV2:Exchange_DSAccessDC class.

MOF Syntax

[read,
 write,
 key,
 required,
 Values{"Configuration Domain Controller", "Local Domain Controller",
   "Global Catalog"},
 ValueMap{"0", "1", "2"}] uint32 Type;

Qualifiers

key

required

Remarks

When you are creating new Exchange_DSAccessDC instances, the Type property is required.

Property Values Map

The following table lists the Type allowed values.

Value NameValueDescription
Configuration Domain Controller0 The domain controller operates as the primary Configuration domain controller. When Exchange reads or writes configuration information, it uses this domain controller. This prevents latency in configuration changes, because all of the servers running Exchange 2000 Server are typically set to use the same Configuration domain controller.
Local Domain Controller1 The domain controller operates as normally, with no special role.
Global Catalog2 The domain controller is the Microsoft Active Directory Global Catalog server.

VBScript Example

The following example shows how to retrieve a list of Exchange_DSAccessDC instances, and how to retrieve the Type property on the instances.

'===============================================================
' Name:      ShowExchange_DSAccessDC_Type
' Purpose:   Display each Exchange_DSAccessDC found for the
'            specified Exchange server, and show the Type
'            property on the Exchange_DSAccessDC
'            instances
' Input:     strComputerName [string] the computer to access
' Output:    Displays the name of each Exchange_DSAccessDC and
'            the Type property
'===============================================================
Public Sub ShowExchange_DSAccessDC_Type ( strComputerName )

Const cWMINameSpace = "root/MicrosoftExchangeV2"
Const cWMIInstance = "Exchange_DSAccessDC"

Dim strWinMgmts              ' Connection string for WMI
Dim objWMIExchange           ' Exchange Namespace WMI object
Dim listExchange_DSAccessDCs ' Exchange_DSAccessDC collection
Dim objExchange_DSAccessDC   ' A single Exchange_DSAccessDC instance

' Create the object string, indicating WMI (winmgmts), using the
' current user credentials (impersonationLevel=impersonate),
' on the computer passed to the function in strComputerName, and
' using the CIM namespace for the Exchange_DSAccessDC provider.
strWinMgmts = "winmgmts:{impersonationLevel=impersonate}!//" & _
   strComputerName & "/" & cWMINameSpace
'
' Get an object using the string you just created.
Set objWMIExchange =  GetObject(strWinMgmts)
'
' The instances appear as a list of Exchange_DSAccessDC
' instances in the Exchange namespace.
Set listExchange_DSAccessDCs = objWMIExchange.InstancesOf(cWMIInstance)
'
' Iterate through the list of Exchange_DSAccessDC objects.
For each objExchange_DSAccessDC in listExchange_DSAccessDCs
   '
   ' Display the value of the Name property.
   WScript.echo "Name = " & _
    "[" & TypeName(objExchange_DSAccessDC.Name) & "] " & _
     objExchange_DSAccessDC.Name
   '
   ' Display the value of the Type property.
   WScript.echo "    Type = [" & _
     TypeName(objExchange_DSAccessDC.Type) & "] " & _
    objExchange_DSAccessDC.Type
   '
   ' Move to the next Exchange_DSAccessDC.
Next
end Sub

Show:
© 2014 Microsoft