Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Trace-Command

Trace-Command - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Trace-Command

Short description
Configures and starts a trace of the specified expression or command.

Syntax
Trace-Command [-Name] <String[]> [-Expression] <ScriptBlock> [[-Option] <PSTraceSourceOptions>] [-Debugger] [-FilePath 
<String>] [-Force] [-InputObject <PSObject>] [-ListenerOption <TraceOptions>] [-PSHost] [<CommonParameters>]
Trace-Command [-Name] <String[]> [-Command] <String> [[-Option] <PSTraceSourceOptions>] [-ArgumentList <Object[]>] [-De
bugger] [-FilePath <String>] [-Force] [-InputObject <PSObject>] [-ListenerOption <TraceOptions>] [-PSHost] [<CommonPara
meters>]





Description
The Trace-Command cmdlet configures and starts a trace of the specified expression or command. It works like Set-TraceS
ource, except that it applies only to the specified command.