PowerShell Logo Small

Set-DtcLog



This is the built-in help made by Microsoft for the command 'Set-DtcLog', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Modifies the log file settings of a DTC instance.

SYNTAX


Set-DtcLog [-AsJob] [-CimSession <CimSession[]>] [-DtcName <String>] [-MaxSizeInMB <UInt32>] [-Path <String>] [-SizeInMB <UInt32>] [-ThrottleLimit <Int32>] [-Confirm]
[-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-DtcLog cmdlet modifies the log file settings of a Distributed Transaction Coordinator (DTC) instance. Use the DtcName parameter to specify a DTC instance. This
cmdlet also recreates the transactions log with new settings and restarts the DTC instance.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=317177
Get-DtcLog
Reset-DtcLog

REMARKS

<

Examples


Example 1: Set the log file path and file size

PS C:\> Set-DtcLog -Path "C:\Windows\system32\MSDtc\NewLog\" -SizeInMB 32 -MaxSizeInMB 1024
PS C:\> Get-DtcLog
MaxSizeInMB : 1024
Path : C:\Windows\system32\MSDtc\NewLog
SizeInMB : 32



The first command sets the path for the DTC log file and specifies the file size. The second command confirms the change.