Modifier

Partager via


Start-VMTrace

Starts tracing to a file.

Syntax

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
Type:TraceLevel
Accepted values:Error, Warning, Info, Verbose
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Path

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

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TraceVerboseObjects

Specifies that tracing uses verbose objects.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Object