PowerShell Logo Small

Set-DtcLog



This is the built-in help made by Microsoft for the command 'Set-DtcLog', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 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

Set-DtcLog modifies the Log File settings of the DTC instance specified by the DtcName parameter. Set-DtcLog will recreate the transactions log with new settings and the DTC instance will be restarted.

SYNTAX


Set-DtcLog [-DtcName [<String>]] [-MaxSizeInMB [<UInt32>]] [-Path [<String>]] [-SizeInMB [<UInt32>]] [-Confirm [<SwitchParameter>]] [-WhatIf
[<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


Set-DtcLog modifies the Log File settings of the DTC instance specified by the DtcName parameter. Set-DtcLog will recreate the transactions
log with new settings and the DTC instance will be restarted.



<

RELATED LINKS


Online Version:



REMARKS

<

Examples




Using Set-DtcLog to modify the Log File settings.
PS C:\> Set-DtcLog -Path C:\Windows\system32\MSDtc\NewLog\ -SizeInMB 32 -MaxSizeInMB 1024

Verifying that the changes were made using Get-DtcLog.
PS C:\> Get-DtcLog
MaxSizeInMB : 1024
Path : C:\Windows\system32\MSDtc\NewLog
SizeInMB : 32



Modifying the DTC Log File settings using Set-DtcLog