Edit

Share via


Export-Trace

Exports an event trace log file for provisioning.

Syntax

Default (Default)

Export-Trace
    [-ETLFile] <String>
    [-Overwrite]
    [-LogsDirectoryPath <String>]
    [-WprpFile <String>]
    [-ConnectedDevice]
    [<CommonParameters>]

Description

Exports trace events from an event trace log ETL file.

Examples

Example 1: Export trace events from an ETL file

PS C:\> Export-Trace -ETLFile C:\Windows\Logs\WindowsUpdate\WindowsUpdate.20211013.074054.819.1.etl -LogsDirectoryPath C:\ETL\Logs

Exports trace events from a specified ETL file and saves the logs to the C:\ETL\Logs folder.

Parameters

-ConnectedDevice

If enabled, specifies that the device type is mobile.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Device

Parameter sets

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

-ETLFile

Specifies the ETL file location.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Etl

Parameter sets

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

-LogsDirectoryPath

Specifies the logs directory path.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Logs

Parameter sets

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

-Overwrite

Indicates that the cmdlet overwrites an existing exported log if one exists.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Force, Overwrite

Parameter sets

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

-WprpFile

Specifies the location of the WPR profile file.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Wprp

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.

Inputs

None

Outputs

Object