Trace-Command - Powershell 1.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
Description Trace an expression or command Usage Options Example(s) Start a trace of the "get-process notepad" expression using the defaults: "All" for tracing and "None" for the listener option: PS C:\>Trace-Command -name metadata,parameterbinding,cmdlet -expression {get -process notepad} -pshost Trace the actions of the ParameterBinding operations of PowerShell while it processes a Get-Alias expression: PS C:\>$a = "i*" trace-command -name parameterbinding {get-alias $input} -pshost -inputobject $a The -InputObject parameter passes the variable $a to the expression. In effect, the command being processed during the trace is "get-alias -inputobject $a"