Get-TraceSource - PowerShell command help and examples

Gets the Windows PowerShell components that are instrumented for tracing. (Get-TraceSource)


NAME
Get-TraceSource
SYNOPSIS
Gets the Windows PowerShell components that are instrumented for tracing.
SYNTAX
Get-TraceSource [[-Name] <string[]>] [<CommonParameters>]
DESCRIPTION
The Get-TraceSource cmdlet gets the trace sources for Windows PowerShell components that are currently in use. You can use the data to determine which Windows PowerShell components you can trace. When tracing, the component generates detailed messages about each step in its internal processing. Developers use the trace data to monitor data flow, program execution, and errors. The tracing cmdlets were designed for Windows PowerShell developers, but they are available to all users.
PARAMETERS
-Name <string[]> Gets only the specified trace sources. Wildcards are permitted. The parameter name ("Name") is optional. Required? false Position? 1 Default value Accept pipeline input? true (ByValue, ByPropertyName) Accept wildcard characters? false <CommonParameters> This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer and OutVariable. For more information, type, "get-help about_commonparameters".
INPUTS
System.String You can pipe a string that contains the name of a trace source to Get-TraceSource.
OUTPUTS
System.Management.Automation.PSTraceSource Get-TraceSource returns objects that represent the trace sources.
NOTES

Examples

EXAMPLE 1
C:\PS>get-traceSource *provider*
Description
----------- This command gets all of the trace sources that have names that include "provider".
EXAMPLE 2
C:\PS>get-tracesource
Description
----------- This command gets all of the Windows PowerShell components that can be traced. RELATED LINKS Online version: http://go.microsoft.com/fwlink/?LinkID=113333 Set-TraceSource Trace-Command C:\Windows>powershell get-help Set-TraceSource -full

Microsoft Windows [Version 10.0.19045.3693]
Copyright (c) 2023 Microsoft Corporation.

ColorConsole [Version 3.7.1000] PowerShell 2.0-Export

Windows 11, 10, 8.1, 8, 7 / Server 2022, 2019, 2016











Windows-10


... Windows 10 FAQ
... Windows 10 How To


Windows 10 How To


... Windows 11 How To
... Windows 10 FAQ



PowerShell: Gets the Windows PowerShell components that are instrumented for tracing.

HTTP: ... PS_Windows/en/Get-TraceSource.htm
0.062
17000
Windows 7 calculator desktop shortcut, can I?
Use Device Pairing Wizard for Windows 11 peripheral devices!
Wo kann ich feststellen, ob SP1 bei meinem Windows-7 installiert ist?
Wie kann ich den Windows 7 Product Key überprüfen, ohne Windows-7 zu installieren?
Where is the Windows Subsystem for Linux on Windows 11?
Wie kann ich die Windows 7, 8.1, 10, ... Partition verkleinern/vergrössern?
Run Program Compatibility Troubleshooter on Windows 11!
Can I turn off or enable hibernate in Windows 7?
Differences between SATA (Serial ATA) and NVMe (Non-Volatile Memory Express)?
Difference between C and C#?



(0)