Edit

Share via


Start-VMTrace

Starts tracing to a file.

Syntax

Default (Default)

Start-VMTrace
    [-Level] <TraceLevel>
    [-TraceVerboseObjects]
    [-Path <String>]
    [<CommonParameters>]

Description

The Start-VMTrace cmdlet starts tracing to a file. You can use this information for advanced debugging.

Examples

Example 1: Start error tracing

PS C:\> Start-VMTrace -Level Error

This command starts tracing at the level of Error.

Parameters

-Level

Specifies the level of tracing. The acceptable values for this parameter are:

  • Off
  • Error
  • Warning
  • Info
  • Verbose

Parameter properties

Type:TraceLevel
Default value:None
Accepted values:Error, Warning, Info, Verbose
Supports wildcards:False
DontShow:False

Parameter sets

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

-Path

Specifies the path of the file where this cmdlet stores the trace information.

Parameter properties

Type:String
Default value:None
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

-TraceVerboseObjects

Specifies that tracing uses verbose objects.

Parameter properties

Type:SwitchParameter
Default value:None
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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

Object