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.

Required Parameters

-Level

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

  • Off
  • Error
  • Warning
  • Info
  • Verbose
Type:TraceLevel
Parameter Sets:Error, Warning, Info, Verbose
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Path

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

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

Specifies that tracing uses verbose objects.

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

Outputs

System.Object