< Back

Reset-DtcLog

Tue Jan 29, 2019 10:24 pm

NAME Reset-DtcLog



SYNOPSIS

Resets the log file of a DTC instance.





SYNTAX

Reset-DtcLog [-CimSession <CimSession[]>] [-DtcName <String>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Reset-DtcLog cmdlet resets the log file of a Distributed Transaction Coordinator (DTC) instance. You can use the DtcName parameter to specify

a DTC instance. This cmdlet also recreates the transactions log with the existing settings and restarts the DTC instance.





PARAMETERS

-CimSession [<CimSession[]>]

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession

or Get-CimSession cmdlet. The default is the current session on the local computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-DtcName [<String>]

Specifies a DTC instance. The cmdlet resets the log file for this instance. If you do not specify this parameter, or if you specify a value of

Local, this cmdlet resets the log file for the local DTC instance.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ThrottleLimit [<Int32>]

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0

is entered, then Windows PowerShell???? calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running

on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value false

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value false

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS











OUTPUTS











Example 1: Reset a DTC log



PS C:\\>Reset-DtcLog ????????DtcName "Local" ????????Confirm:$False ????????WhatIf:$False



This command resets the log file for the Local DTC instance.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=317170

Get-DtcLog

Reset-DtcLog