Skip to content

Commit 84b5d29

Browse files
authored
Merge pull request MicrosoftDocs#2728 from velkovb/update/export-trace
Populate article Export-Trace
2 parents 65836f3 + fb6cbd3 commit 84b5d29

File tree

3 files changed

+138
-18
lines changed

3 files changed

+138
-18
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
---
2+
description: Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
3+
external help file: provcmdlets.dll-Help.xml
4+
Module Name: Provisioning
5+
ms.date: 05/09/2017
6+
online version: https://docs.microsoft.com/powershell/module/provisioning/export-trace?view=windowsserver2016-ps&wt.mc_id=ps-gethelp
7+
schema: 2.0.0
8+
title: Export-Trace
9+
---
10+
11+
# Export-Trace
12+
13+
## SYNOPSIS
14+
Exports trace events.
15+
16+
## SYNTAX
17+
18+
```
19+
Export-Trace [-ETLFile] <String> [-Overwrite] [-LogsDirectoryPath <String>] [-WprpFile <String>]
20+
[-WprpFile]
21+
```
22+
23+
## DESCRIPTION
24+
Exports trace events from an event trace log (ETL) file.
25+
26+
## EXAMPLES
27+
28+
### Example 1: Export trace events from an ETL file
29+
```powershell
30+
PS C:\> Export-Trace -ETLFile C:\Windows\Logs\WindowsUpdate\WindowsUpdate.20211013.074054.819.1.etl -LogsDirectoryPath C:\ETL\Logs
31+
```
32+
33+
Exports trace events from a specified ETL file and saves the logs to the C:\ETL\Logs folder.
34+
35+
## PARAMETERS
36+
37+
### -ConnectedDevice
38+
If enabled, specifies that the device type is mobile.
39+
40+
```yaml
41+
Type: SwitchParameter
42+
Parameter Sets: (All)
43+
Aliases: Device
44+
45+
Required: False
46+
Position: Named
47+
Default value: None
48+
Accept pipeline input: False
49+
Accept wildcard characters: False
50+
```
51+
52+
### -ETLFile
53+
Specifies the ETL file location.
54+
55+
```yaml
56+
Type: String
57+
Parameter Sets: (All)
58+
Aliases: Etl
59+
60+
Required: True
61+
Position: 0
62+
Default value: None
63+
Accept pipeline input: False
64+
Accept wildcard characters: False
65+
```
66+
67+
### -LogsDirectoryPath
68+
Specifies the logs directory path.
69+
70+
```yaml
71+
Type: String
72+
Parameter Sets: (All)
73+
Aliases: Logs
74+
75+
Required: False
76+
Position: Named
77+
Default value: None
78+
Accept pipeline input: False
79+
Accept wildcard characters: False
80+
```
81+
82+
### -Overwrite
83+
Overwrites the existing export.
84+
85+
```yaml
86+
Type: SwitchParameter
87+
Parameter Sets: (All)
88+
Aliases: Force, Overwrite
89+
90+
Required: False
91+
Position: Named
92+
Default value: None
93+
Accept pipeline input: False
94+
Accept wildcard characters: False
95+
```
96+
97+
### -WprpFile
98+
Specifies the location of the WPR profile file.
99+
100+
```yaml
101+
Type: String
102+
Parameter Sets: (All)
103+
Aliases: Wprp
104+
105+
Required: False
106+
Position: Named
107+
Default value: None
108+
Accept pipeline input: False
109+
Accept wildcard characters: False
110+
```
111+
112+
## INPUTS
113+
114+
### None
115+
116+
117+
## OUTPUTS
118+
119+
### System.Object
120+
121+
## NOTES
122+
123+
## RELATED LINKS
124+

docset/winserver2019-ps/provisioning/Export-Trace.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,16 @@ Export-Trace [-ETLFile] <String> [-Overwrite] [-LogsDirectoryPath <String>] [-Wp
2121
```
2222

2323
## DESCRIPTION
24-
The **Export-Trace** cmdlet exports an event trace log (ETL) file for provisioning.
25-
26-
The **Export-Trace** cmdlet is supported on Windows 10 client operating system only.
24+
Exports trace events from an event trace log (ETL) file.
2725

2826
## EXAMPLES
2927

30-
### Example 1
31-
```
32-
Export-Trace -ETLFile C:\Windows\Logs\provisioning.etl -Overwrite
28+
### Example 1: Export trace events from an ETL file
29+
```powershell
30+
PS C:\> Export-Trace -ETLFile C:\Windows\Logs\WindowsUpdate\WindowsUpdate.20211013.074054.819.1.etl -LogsDirectoryPath C:\ETL\Logs
3331
```
3432

35-
This example exports an ETL file to the specified location, overwriting an existing file, if it exists.
33+
Exports trace events from a specified ETL file and saves the logs to the C:\ETL\Logs folder.
3634

3735
## PARAMETERS
3836

@@ -52,7 +50,7 @@ Accept wildcard characters: False
5250
```
5351
5452
### -ETLFile
55-
Specifies a location for the .etl file.
53+
Specifies the ETL file location.
5654
5755
```yaml
5856
Type: String
@@ -67,7 +65,7 @@ Accept wildcard characters: False
6765
```
6866
6967
### -LogsDirectoryPath
70-
Specifies the path of the logs directory.
68+
Specifies the logs directory path.
7169
7270
```yaml
7371
Type: String

docset/winserver2022-ps/provisioning/Export-Trace.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,16 @@ Export-Trace [-ETLFile] <String> [-Overwrite] [-LogsDirectoryPath <String>] [-Wp
2121
```
2222

2323
## DESCRIPTION
24-
The **Export-Trace** cmdlet exports an event trace log (ETL) file for provisioning.
25-
26-
The **Export-Trace** cmdlet is supported on Windows 11 client operating system only.
24+
Exports trace events from an event trace log ETL file.
2725

2826
## EXAMPLES
2927

30-
### Example 1
31-
```
32-
Export-Trace -ETLFile C:\Windows\Logs\provisioning.etl -Overwrite
28+
### Example 1: Export trace events from an ETL file
29+
```powershell
30+
PS C:\> Export-Trace -ETLFile C:\Windows\Logs\WindowsUpdate\WindowsUpdate.20211013.074054.819.1.etl -LogsDirectoryPath C:\ETL\Logs
3331
```
3432

35-
This example exports an ETL file to the specified location, overwriting an existing file, if it exists.
33+
Exports trace events from a specified ETL file and saves the logs to the C:\ETL\Logs folder.
3634

3735
## PARAMETERS
3836

@@ -52,7 +50,7 @@ Accept wildcard characters: False
5250
```
5351
5452
### -ETLFile
55-
Specifies a location for the .etl file.
53+
Specifies the ETL file location.
5654
5755
```yaml
5856
Type: String
@@ -67,7 +65,7 @@ Accept wildcard characters: False
6765
```
6866
6967
### -LogsDirectoryPath
70-
Specifies the path of the logs directory.
68+
Specifies the logs directory path.
7169
7270
```yaml
7371
Type: String

0 commit comments

Comments
 (0)