Powershell – Configure MSDTC


MSDTC cmdlets resume

The main cmdlets to work with Microsoft Distributed Transaction Coordinator (MSDTC):

Cmdlets Description
Get-Dtc retrieves the list of DTC instances on the machine and the complete list of standard settings (log, network, and trace) for a given DTC instance
Get-DtcLog
Set-DtcLog
retrieve all of the DTC log settings for a given DTC instance on the machine (Get-DtcLog) and write the DTC log settings to the new server (Set-DtcLog)
Get-DtcNetworkSetting
Set-DtcNetworkSetting
retrieve all of the DTC network settings for a given DTC instance on the machine (Get-DtcNetworkSetting) and write the DTC network settings to the new server (Set-DtcNetworkSetting)
Get-DtcTransactionsTraceSetting
Set-DtcTransactionsTraceSetting
retrieve all of the DTC transaction trace settings on the machine (Get-DtcTransactionsTraceSetting) and write the DTC transaction trace settings to the new server (Set-DtcTransactionsTraceSetting)
Get-DtcAdvancedSetting
Set-DtcAdvancedSetting
retrieve (Get-DtcAdvancedSetting) and write (Set-DtcAdvancedSetting) advanced settings that are used by a particular DTC instance on the machine
Get-DtcAdvancedHostSetting
Set-DtcAdvancedHostSetting
retrieve (Get-DtcAdvancedHostSetting) and write (Set-DtcAdvancedHostSetting) advanced host settings that DTC uses on the machine
Start-Dtc starts a particular DTC instance on the new server once it has been configured
Install-Dtc configures the MSDTC NT service for a different startup or log path on the new server

 
MSDTC info
Get-Dtc
To list all server defined MSDTC:

Get-Dtc

 
MSDTC Network Configuration
Get-DtcNetworkSetting
To see MSDTC network configuration to server local MSDTC, type:

Get-DtcNetworkConfiguration DtcName Local

 
Set-DtcNetworkSetting
To configure local MSDTC network configuration, type:

Set-DtcNetworkConfiguration –DtcName Local -RemoteClientAccessEnabled 0 -RemoteAdministrationAccessEnabled 0 -InboundTransactionsEnabled 1 -OutboundTransactionsEnabled 1 -AuthenticationLevel NoAuth -XATransactionsEnabled 0 -LUTransactionsEnabled 0

 

In Depth
http://msdn.microsoft.com/en-us/library/windows/desktop/hh829474%28v=vs.85%29.aspx

Tested With
PowerShell 4.0

Advertisements
Categories: Powershell | Leave a comment

Post navigation

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: