Updates from: 05/15/2021 03:12:00
Service Microsoft Docs article Related commit history on GitHub Change details
Microsoft.PowerShell.Management Get Childitem (5.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/5.1/Microsoft.PowerShell.Management/Get-ChildItem.md
Accept wildcard characters: False
### -Exclude
-Specifies, as a string array, a property or property that this cmdlet excludes from the operation.
-The value of this parameter qualifies the **Path** parameter. Enter a path element or pattern, such
-as `*.txt` or `A*`. Wildcard characters are accepted.
+Specifies an array of one or more string patterns to be matched as the cmdlet gets child items. Any
+matching item is excluded from the output. Enter a path element or pattern, such as `*.txt` or `A*`.
+Wildcard characters are accepted.
A trailing asterisk (`*`) in the **Path** parameter is optional. For example, `-Path C:\Test\Logs` or `-Path C:\Test\Logs\*`. If a trailing asterisk (`*`) is included, the command recurses into the **Path** parameter's subdirectories. Without the asterisk (`*`), the contents of the **Path** parameter are displayed. More details are included in Example 5 and the Notes section.
+The **Include** and **Exclude** parameters can be used together. However, the exclusions are applied
+after the inclusions, which can affect the final output.
+ ```yaml Type: System.String[] Parameter Sets: (All)
Accept wildcard characters: False
### -Include
-Specifies, as a string array, an item or items that this cmdlet includes in the operation. The value
-of this parameter qualifies the **Path** parameter. Enter a path element or pattern, such as
-`"*.txt"`. Wildcard characters are permitted. The **Include** parameter is effective only when the
-command includes the contents of an item, such as `C:\Windows\*`, where the wildcard character
-specifies the contents of the `C:\Windows` directory.
+Specifies an array of one or more string patterns to be matched as the cmdlet gets child items. Any
+matching item is included in the output. Enter a path element or pattern, such as `"*.txt"`.
+Wildcard characters are permitted. The **Include** parameter is effective only when the command
+includes the contents of an item, such as `C:\Windows\*`, where the wildcard character specifies the
+contents of the `C:\Windows` directory.
+
+The **Include** and **Exclude** parameters can be used together. However, the exclusions are applied
+after the inclusions, which can affect the final output.
```yaml Type: System.String[]
Microsoft.PowerShell.Management Get Childitem (7.0) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/Microsoft.PowerShell.Management/Get-ChildItem.md
Accept wildcard characters: False
### -Exclude
-Specifies, as a string array, a property or property that this cmdlet excludes from the operation.
-The value of this parameter qualifies the **Path** parameter. Enter a path element or pattern, such
-as `*.txt` or `A*`. Wildcard characters are accepted.
+Specifies an array of one or more string patterns to be matched as the cmdlet gets child items. Any
+matching item is excluded from the output. Enter a path element or pattern, such as `*.txt` or `A*`.
+Wildcard characters are accepted.
A trailing asterisk (`*`) in the **Path** parameter is optional. For example, `-Path C:\Test\Logs` or `-Path C:\Test\Logs\*`. If a trailing asterisk (`*`) is included, the command recurses into the **Path** parameter's subdirectories. Without the asterisk (`*`), the contents of the **Path** parameter are displayed. More details are included in Example 5 and the Notes section.
+The **Include** and **Exclude** parameters can be used together. However, the exclusions are applied
+after the inclusions, which can affect the final output.
+ ```yaml Type: System.String[] Parameter Sets: (All)
Accept wildcard characters: False
### -Include
-Specifies, as a string array, an item or items that this cmdlet includes in the operation. The value
-of this parameter qualifies the **Path** parameter. Enter a path element or pattern, such as
-`"*.txt"`. Wildcard characters are permitted. The **Include** parameter is effective only when the
-command includes the contents of an item, such as `C:\Windows\*`, where the wildcard character
-specifies the contents of the `C:\Windows` directory.
+Specifies an array of one or more string patterns to be matched as the cmdlet gets child items. Any
+matching item is included in the output. Enter a path element or pattern, such as `"*.txt"`.
+Wildcard characters are permitted. The **Include** parameter is effective only when the command
+includes the contents of an item, such as `C:\Windows\*`, where the wildcard character specifies the
+contents of the `C:\Windows` directory.
+
+The **Include** and **Exclude** parameters can be used together. However, the exclusions are applied
+after the inclusions, which can affect the final output.
```yaml Type: System.String[]
Microsoft.PowerShell.Management Get Childitem (7.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/Microsoft.PowerShell.Management/Get-ChildItem.md
Accept wildcard characters: False
### -Exclude
-Specifies, as a string array, a property or property that this cmdlet excludes from the operation.
-The value of this parameter qualifies the **Path** parameter. Enter a path element or pattern, such
-as `*.txt` or `A*`. Wildcard characters are accepted.
+Specifies an array of one or more string patterns to be matched as the cmdlet gets child items. Any
+matching item is excluded from the output. Enter a path element or pattern, such as `*.txt` or `A*`.
+Wildcard characters are accepted.
A trailing asterisk (`*`) in the **Path** parameter is optional. For example, `-Path C:\Test\Logs` or `-Path C:\Test\Logs\*`. If a trailing asterisk (`*`) is included, the command recurses into the **Path** parameter's subdirectories. Without the asterisk (`*`), the contents of the **Path** parameter are displayed. More details are included in Example 5 and the Notes section.
+The **Include** and **Exclude** parameters can be used together. However, the exclusions are applied
+after the inclusions, which can affect the final output.
+ ```yaml Type: System.String[] Parameter Sets: (All)
Accept wildcard characters: False
### -Include
-Specifies, as a string array, an item or items that this cmdlet includes in the operation. The value
-of this parameter qualifies the **Path** parameter. Enter a path element or pattern, such as
-`"*.txt"`. Wildcard characters are permitted. The **Include** parameter is effective only when the
-command includes the contents of an item, such as `C:\Windows\*`, where the wildcard character
-specifies the contents of the `C:\Windows` directory.
+Specifies an array of one or more string patterns to be matched as the cmdlet gets child items. Any
+matching item is included in the output. Enter a path element or pattern, such as `"*.txt"`.
+Wildcard characters are permitted. The **Include** parameter is effective only when the command
+includes the contents of an item, such as `C:\Windows\*`, where the wildcard character specifies the
+contents of the `C:\Windows` directory.
+
+The **Include** and **Exclude** parameters can be used together. However, the exclusions are applied
+after the inclusions, which can affect the final output.
```yaml Type: System.String[]
Microsoft.PowerShell.Management Get Childitem (7.2) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/Microsoft.PowerShell.Management/Get-ChildItem.md
Accept wildcard characters: False
### -Exclude
-Specifies, as a string array, a property or property that this cmdlet excludes from the operation.
-The value of this parameter qualifies the **Path** parameter. Enter a path element or pattern, such
-as `*.txt` or `A*`. Wildcard characters are accepted.
+Specifies an array of one or more string patterns to be matched as the cmdlet gets child items. Any
+matching item is excluded from the output. Enter a path element or pattern, such as `*.txt` or `A*`.
+Wildcard characters are accepted.
A trailing asterisk (`*`) in the **Path** parameter is optional. For example, `-Path C:\Test\Logs` or `-Path C:\Test\Logs\*`. If a trailing asterisk (`*`) is included, the command recurses into the **Path** parameter's subdirectories. Without the asterisk (`*`), the contents of the **Path** parameter are displayed. More details are included in Example 5 and the Notes section.
+The **Include** and **Exclude** parameters can be used together. However, the exclusions are applied
+after the inclusions, which can affect the final output.
+ ```yaml Type: System.String[] Parameter Sets: (All)
Accept wildcard characters: False
### -Include
-Specifies, as a string array, an item or items that this cmdlet includes in the operation. The value
-of this parameter qualifies the **Path** parameter. Enter a path element or pattern, such as
-`"*.txt"`. Wildcard characters are permitted. The **Include** parameter is effective only when the
-command includes the contents of an item, such as `C:\Windows\*`, where the wildcard character
-specifies the contents of the `C:\Windows` directory.
+Specifies an array of one or more string patterns to be matched as the cmdlet gets child items. Any
+matching item is included in the output. Enter a path element or pattern, such as `"*.txt"`.
+Wildcard characters are permitted. The **Include** parameter is effective only when the command
+includes the contents of an item, such as `C:\Windows\*`, where the wildcard character specifies the
+contents of the `C:\Windows` directory.
+
+The **Include** and **Exclude** parameters can be used together. However, the exclusions are applied
+after the inclusions, which can affect the final output.
```yaml Type: System.String[]