18.4. Tracing

Tracing functionality is provided with Windows PowerShell, but it is intended primarily for use by Microsoft support staff. However, if you want to explore beneath the covers what Windows PowerShell is doing, the tracing cmdlets can be very useful. However, the volume of information produced can quickly become daunting.

There are three such cmdlets:

  • trace-command

  • set-tracesource

  • get-tracesource

I describe each of these cmdlets briefly in the following sections.

Get Professional Windows® PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.