Share via


Set method of the MSFT_DtcDefaultTask class

Sets the default DTC instance.

Syntax

uint32 Set(
  [in] string ServerName
);

Parameters

ServerName [in]

The host name or virtual server name of the DTC to set as the default coordinator. If you do not specify this parameter, this method specifies the local DTC as the default coordinator.

Return value

Returns "0" on success, otherwise returns a WMI error code.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\MsDTC
MOF
Msdtcwmi.mof
DLL
MsDtcWmi.dll

See also

MSFT_DtcDefaultTask