Get-DtcLog

Applies To: Windows Server 2012 R2 Preview

Get-DtcLog

Get-DtcLog retrieves the Log File settings for the DTC instance specified by the DtcName parameter.

Syntax

Parameter Set: Default
Get-DtcLog [-DtcName <String> ] [ <CommonParameters>]

Detailed Description

Get-DtcLog retrieves the Log File settings for the DTC instance specified by the DtcName parameter.

Parameters

-DtcName<String>

Specifies the DTC instance from which the Log File settings are to be displayed. If this parameter is null or set to Local, this will display the Log File settings for the Local DTC instance.

Aliases

none

Required?

false

Position?

named

Default Value

Local

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1

Using Get-DtcLog with no parameters. This will return the Dtc Log File settings for the Local DTC instance.

PS C:\> Get-DtcLog
MaxSizeInMB      : 512
Path : C:\Windows\system32\MSDtc
SizeInMB : 4

Example 2

Using Get-DtcLog with a named DTC instance. <instancename> can be any named DTC instance or Local.

PS C:\> Get-DtcLog <instancename>
MaxSizeInMB      : 512
Path : G:\MSDTC\beb6d145-405e-47cd-b326-a5505a461229
SizeInMB : 4