Edit

Share via


Set-NetIntentTracing

Starts or stops ATC tracing sessions on the host.

Syntax

Default (Default)

Set-NetIntentTracing
    [-StopTracing]
    [[-ComputerName] <String>]

Description

The Set-NetIntentTracing cmdlet starts or stops ATC tracing sessions on the specified host. Tracing sessions are useful for diagnosing issues related to network intents by capturing relevant data.

Examples

Example 1

Set-NetIntentTracing -ComputerName "Server01"

This example starts an ATC tracing session on the computer named Server01.

Example 2

Set-NetIntentTracing -StopTracing -ComputerName "Server01"

This example stops an ATC tracing session on the computer named Server01.

Parameters

-ComputerName

Specifies the name of the computer on which to start or stop the tracing session. If this parameter is not specified, the cmdlet operates on the local computer.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StopTracing

Indicates that the cmdlet should stop the tracing session instead of starting it.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

Inputs

SwitchParameter

String