Skip to content

Commit 04c98e7

Browse files
authored
Merge branch 'master' into patch-1
2 parents 5a624f0 + 84b5d29 commit 04c98e7

File tree

7 files changed

+145
-25
lines changed

7 files changed

+145
-25
lines changed
Lines changed: 124 additions & 0 deletions
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/activedirectory/ActiveDirectory.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ title: ActiveDirectory
1313
## Description
1414
The Active Directory module for Windows PowerShell is a PowerShell module that consolidates a group of cmdlets. You can use these cmdlets to manage your Active Directory domains, Active Directory Lightweight Directory Services (AD LDS) configuration sets, and Active Directory Database Mounting Tool instances in a single, self-contained package.
1515

16-
If you don't have the Active Directory module installed on your machine, you need to download the correct Remote Server Administration Tools (RSAT) package for your OS. If you're running Windows 7, you will also need to run the `import-module ActiveDirectory` command from an elevated PowerShell prompt. For more detail, see [RSAT for Windows operating systems](https://support.microsoft.com/help/2693643/remote-server-administration-tools-rsat-for-windows-operating-systems). Starting with Windows 10 October 2018 Update, RSAT is included as a set of Features on Demand right from Windows 10. Now, instead of downloading an RSAT package you can just go to Manage optional features in Settings and click Add a feature to see the list of available RSAT tools. Select and install the specific RSAT tools you need. To see installation progress, click the Back button to view status on the Manage optional features page.
16+
If you don't have the Active Directory module installed on your machine, you need to download the correct Remote Server Administration Tools (RSAT) package for your OS. If you're running Windows 7, you will also need to run the `import-module ActiveDirectory` command from an elevated PowerShell prompt. For more detail, see [Remote Server Administration Tools (RSAT) for Windows](/troubleshoot/windows-server/system-management-components/remote-server-administration-tools). Starting with Windows 10 October 2018 Update, RSAT is included as a set of Features on Demand right from Windows 10. Now, instead of downloading an RSAT package you can just go to Manage optional features in Settings and click Add a feature to see the list of available RSAT tools. Select and install the specific RSAT tools you need. To see installation progress, click the Back button to view status on the Manage optional features page.
1717

18-
If you want to use this module in PowerShell 7, please see [PowerShell 7 module compatibility](https://docs.microsoft.com/powershell/scripting/whats-new/module-compatibility).
18+
If you want to use this module in PowerShell 7, please see [PowerShell 7 module compatibility](/powershell/scripting/whats-new/module-compatibility).
1919

2020
## ActiveDirectory Cmdlets
2121
### [Add-ADCentralAccessPolicyMember](./Add-ADCentralAccessPolicyMember.md)

docset/winserver2019-ps/dnsserver/Set-DnsServerResourceRecord.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This cmdlet cannot change the Name or Type of a DNS server resource record objec
3232
### Example 1: Change the timespan of a resource record
3333
```
3434
PS C:\> $OldObj = Get-DnsServerResourceRecord -Name "Host01" -ZoneName "contoso.com" -RRType "A"
35-
PS C:\> $NewObj = $OldObj.Clone()
35+
PS C:\> $NewObj = [ciminstance]::new($OldObj)
3636
PS C:\> $NewObj.TimeToLive = [System.TimeSpan]::FromHours(2)
3737
PS C:\> Set-DnsServerResourceRecord -NewInputObject $NewObj -OldInputObject $OldObj -ZoneName "contoso.com" -PassThru
3838
@@ -45,7 +45,7 @@ In this example, the time to live (TTL) value of the resource record named Host0
4545

4646
The first command assigns a resource record named Host01 in the zone named contoso.com to the variable **$OldObj**.
4747

48-
The second command copies the variable **$OldObj** to a new variable **$NewObj** using the .Clone() method.
48+
The second command copies the variable **$OldObj** to a new variable **$NewObj** using the [ciminstance]::new() constructor.
4949

5050
The third command sets the TTL time span for **$NewObj** to 2 hours.
5151

docset/winserver2019-ps/hyper-v/New-VM.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ Accepted values: 1, 2
255255

256256
Required: False
257257
Position: 2
258-
Default value: None
258+
Default value: 1
259259
Accept pipeline input: False
260260
Accept wildcard characters: False
261261
```

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

Lines changed: 7 additions & 9 deletions
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/winserver2019-ps/updateservices/Get-WsusUpdate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ Specifies the installation status for which to search. An update will be include
129129
130130
- Needed
131131
- FailedOrNeeded
132-
- InstalledNotApplicableOrNoStatus
132+
- InstalledOrNotApplicableOrNoStatus
133133
- Failed
134-
- InstalledNotApplicable
134+
- InstalledOrNotApplicable
135135
- NoStatus
136136
- Any
137137

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

Lines changed: 7 additions & 9 deletions
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)