Export-Trace
Exports an event trace log file for provisioning.
Syntax
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.
Type: | SwitchParameter |
Aliases: | Device |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ETLFile
Specifies the ETL file location.
Type: | String |
Aliases: | Etl |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LogsDirectoryPath
Specifies the logs directory path.
Type: | String |
Aliases: | Logs |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Overwrite
Indicates that the cmdlet overwrites an existing exported log if one exists.
Type: | SwitchParameter |
Aliases: | Force, Overwrite |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WprpFile
Specifies the location of the WPR profile file.
Type: | String |
Aliases: | Wprp |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None