Skip to content

Commit

Permalink
Remove copy/paste error in description
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwheeler committed Oct 31, 2023
1 parent ece5abc commit c066d28
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 66 deletions.
29 changes: 14 additions & 15 deletions reference/5.1/Microsoft.PowerShell.Management/Add-Content.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 10/12/2023
ms.date: 10/31/2023
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/add-content?view=powershell-5.1&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Add-Content
Expand Down Expand Up @@ -36,8 +36,7 @@ Add-Content [-Value] <Object[]> -LiteralPath <string[]> [-PassThru] [-Filter <st
## DESCRIPTION

The `Add-Content` cmdlet appends content to a specified item or file. Content can be passed in from
the pipeline or specified by using the **Value** parameter. By default, `Add-Content` overwrites the
existing content of an item. To append content to a file, use the **Append** parameter.
the pipeline or specified by using the **Value** parameter.

If you need to create files or directories for the following examples, see [New-Item](New-Item.md).

Expand Down Expand Up @@ -162,7 +161,7 @@ set to `False`.
### -Credential

> [!NOTE]
> This parameter is not supported by any providers installed with PowerShell.
> This parameter isn't supported by any providers installed with PowerShell.
> To impersonate another user, or elevate your credentials when running this cmdlet,
> use [Invoke-Command](../Microsoft.PowerShell.Core/Invoke-Command.md).
Expand Down Expand Up @@ -241,7 +240,7 @@ installed PowerShell provider that supports the use of filters. You can find the
**FileSystem** filter language in
[about_Wildcards](../Microsoft.PowerShell.Core/About/about_Wildcards.md). Filters are more efficient
than other parameters, because the provider applies them when the cmdlet gets the objects rather
than having PowerShell filter the objects after they are retrieved.
than having PowerShell filter the objects after they're retrieved.

```yaml
Type: System.String
Expand All @@ -258,7 +257,7 @@ Accept wildcard characters: True
### -Force

Overrides the read-only attribute, allowing you to add content to a read-only file. For example,
**Force** overrides the read-only attribute but it does not change file permissions.
**Force** overrides the read-only attribute but it doesn't change file permissions.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down Expand Up @@ -294,7 +293,7 @@ Accept wildcard characters: True

### -LiteralPath

Specifies a path to one or more locations. The value of **LiteralPath** is used exactly as it is
Specifies a path to one or more locations. The value of **LiteralPath** is used exactly as it's
typed. No characters are interpreted as wildcards. If the path includes escape characters, enclose
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
as escape sequences.
Expand All @@ -316,7 +315,7 @@ Accept wildcard characters: False

### -NoNewline

Indicates that this cmdlet does not add a new line or carriage return to the content.
Indicates that this cmdlet doesn't add a new line or carriage return to the content.

The string representations of the input objects are concatenated to form the output. No spaces or
newlines are inserted between the output strings. No newline is added after the last output string.
Expand All @@ -335,7 +334,7 @@ Accept wildcard characters: False

### -PassThru

Returns an object representing the added content. By default, this cmdlet does not generate any
Returns an object representing the added content. By default, this cmdlet doesn't generate any
output.

```yaml
Expand Down Expand Up @@ -371,14 +370,14 @@ Accept wildcard characters: True

### -Stream

Specifies an alternative data stream for content. If the stream does not exist, this cmdlet creates
it. Wildcard characters are not supported.
Specifies an alternative data stream for content. If the stream doesn't exist, this cmdlet creates
it. Wildcard characters aren't supported.

**Stream** is a dynamic parameter that the FileSystem provider adds to `Add-Content`. This
parameter works only in file system drives.

You can use the `Add-Content` cmdlet to change the content of any alternate data stream, such as
`Zone.Identifier`. However, we do not recommend this as a way to eliminate security checks that
`Zone.Identifier`. However, we don't recommend this as a way to eliminate security checks that
block files that are downloaded from the Internet. If you verify that a downloaded file is safe, use
the `Unblock-File` cmdlet.

Expand Down Expand Up @@ -419,7 +418,7 @@ Specifies the content to be added. Type a quoted string, such as **This data is
only**, or specify an object that contains content, such as the **DateTime** object that `Get-Date`
generates.

You cannot specify the contents of a file by typing its path, because the path is just a string.
You can't specify the contents of a file by typing its path, because the path is just a string.
You can use a `Get-Content` command to get the content and pass it to the **Value** parameter.

```yaml
Expand Down Expand Up @@ -452,7 +451,7 @@ Accept wildcard characters: False

### -WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.
Shows what would happen if the cmdlet runs. The cmdlet isn't run.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down Expand Up @@ -500,7 +499,7 @@ Windows PowerShell includes the following aliases for `Add-Content`:

- `ac`

- When you pipe an object to `Add-Content`, the object is converted to a string before it is added
- When you pipe an object to `Add-Content`, the object is converted to a string before it's added
to the item. The object type determines the string format, but the format might be different than
the default display of the object. To control the string format, use the formatting parameters of
the sending cmdlet.
Expand Down
33 changes: 16 additions & 17 deletions reference/7.2/Microsoft.PowerShell.Management/Add-Content.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 10/12/2023
ms.date: 10/31/2023
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/add-content?view=powershell-7.2&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Add-Content
Expand Down Expand Up @@ -36,8 +36,7 @@ Add-Content [-Value] <Object[]> -LiteralPath <string[]> [-PassThru] [-Filter <st
## DESCRIPTION

The `Add-Content` cmdlet appends content to a specified item or file. Content can be passed in from
the pipeline or specified by using the **Value** parameter. By default, `Add-Content` overwrites the
existing content of an item. To append content to a file, use the **Append** parameter.
the pipeline or specified by using the **Value** parameter.

If you need to create files or directories for the following examples, see [New-Item](New-Item.md).

Expand All @@ -54,7 +53,7 @@ Add-Content -Path .\*.txt -Exclude help* -Value 'End of file'

The **Path** parameter specifies all `.txt` files in the current directory, but the **Exclude**
parameter ignores file names that match the specified pattern. The **Value** parameter specifies the
text string that is written to the files.
text string that's written to the files.

Use [Get-Content](Get-Content.md) to display the contents of these files.

Expand All @@ -76,7 +75,7 @@ Tuesday, May 14, 2019 8:24:27 AM

The `Add-Content` cmdlet creates two new files in the current directory. The **Value** parameter
contains the output of the `Get-Date` cmdlet. The **PassThru** parameter outputs the added contents
to the pipeline. Because there is no other cmdlet to receive the output, it is displayed in the
to the pipeline. Because there is no other cmdlet to receive the output, it's displayed in the
PowerShell console. The `Get-Content` cmdlet displays the updated file, `DateTimeFile1.log`.

### Example 3: Add the contents of a specified file to another file
Expand Down Expand Up @@ -195,7 +194,7 @@ Accept wildcard characters: False
### -Credential
> [!NOTE]
> This parameter is not supported by any providers installed with PowerShell.
> This parameter isn't supported by any providers installed with PowerShell.
> To impersonate another user, or elevate your credentials when running this cmdlet,
> use [Invoke-Command](../Microsoft.PowerShell.Core/Invoke-Command.md).
Expand Down Expand Up @@ -281,7 +280,7 @@ installed PowerShell provider that supports the use of filters. You can find the
**FileSystem** filter language in
[about_Wildcards](../Microsoft.PowerShell.Core/About/about_Wildcards.md). Filters are more efficient
than other parameters, because the provider applies them when the cmdlet gets the objects rather
than having PowerShell filter the objects after they are retrieved.
than having PowerShell filter the objects after they're retrieved.

```yaml
Type: System.String
Expand All @@ -298,7 +297,7 @@ Accept wildcard characters: True
### -Force

Overrides the read-only attribute, allowing you to add content to a read-only file. For example,
**Force** overrides the read-only attribute but it does not change file permissions.
**Force** overrides the read-only attribute but it doesn't change file permissions.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down Expand Up @@ -334,7 +333,7 @@ Accept wildcard characters: True

### -LiteralPath

Specifies a path to one or more locations. The value of **LiteralPath** is used exactly as it is
Specifies a path to one or more locations. The value of **LiteralPath** is used exactly as it's
typed. No characters are interpreted as wildcards. If the path includes escape characters, enclose
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
as escape sequences.
Expand All @@ -356,7 +355,7 @@ Accept wildcard characters: False

### -NoNewline

Indicates that this cmdlet does not add a new line or carriage return to the content.
Indicates that this cmdlet doesn't add a new line or carriage return to the content.

The string representations of the input objects are concatenated to form the output. No spaces or
newlines are inserted between the output strings. No newline is added after the last output string.
Expand All @@ -375,7 +374,7 @@ Accept wildcard characters: False

### -PassThru

Returns an object representing the added content. By default, this cmdlet does not generate any
Returns an object representing the added content. By default, this cmdlet doesn't generate any
output.

```yaml
Expand Down Expand Up @@ -414,14 +413,14 @@ Accept wildcard characters: True
> [!NOTE]
> This Parameter is only available on Windows.

Specifies an alternative data stream for content. If the stream does not exist, this cmdlet creates
it. Wildcard characters are not supported.
Specifies an alternative data stream for content. If the stream doesn't exist, this cmdlet creates
it. Wildcard characters aren't supported.

**Stream** is a dynamic parameter that the FileSystem provider adds to `Add-Content`. This
parameter works only in file system drives.

You can use the `Add-Content` cmdlet to change the content of any alternate data stream, such as
`Zone.Identifier`. However, we do not recommend this as a way to eliminate security checks that
`Zone.Identifier`. However, we don't recommend this as a way to eliminate security checks that
block files that are downloaded from the Internet. If you verify that a downloaded file is safe, use
the `Unblock-File` cmdlet.

Expand All @@ -447,7 +446,7 @@ Specifies the content to be added. Type a quoted string, such as **This data is
only**, or specify an object that contains content, such as the **DateTime** object that `Get-Date`
generates.

You cannot specify the contents of a file by typing its path, because the path is just a string.
You can't specify the contents of a file by typing its path, because the path is just a string.
You can use a `Get-Content` command to get the content and pass it to the **Value** parameter.

```yaml
Expand Down Expand Up @@ -480,7 +479,7 @@ Accept wildcard characters: False

### -WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.
Shows what would happen if the cmdlet runs. The cmdlet isn't run.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down Expand Up @@ -529,7 +528,7 @@ PowerShell includes the following aliases for `Add-Content`:
- Windows:
- `ac`

- When you pipe an object to `Add-Content`, the object is converted to a string before it is added
- When you pipe an object to `Add-Content`, the object is converted to a string before it's added
to the item. The object type determines the string format, but the format might be different than
the default display of the object. To control the string format, use the formatting parameters of
the sending cmdlet.
Expand Down
33 changes: 16 additions & 17 deletions reference/7.3/Microsoft.PowerShell.Management/Add-Content.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 10/12/2023
ms.date: 10/31/2023
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/add-content?view=powershell-7.3&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Add-Content
Expand Down Expand Up @@ -36,8 +36,7 @@ Add-Content [-Value] <Object[]> -LiteralPath <string[]> [-PassThru] [-Filter <st
## DESCRIPTION

The `Add-Content` cmdlet appends content to a specified item or file. Content can be passed in from
the pipeline or specified by using the **Value** parameter. By default, `Add-Content` overwrites the
existing content of an item. To append content to a file, use the **Append** parameter.
the pipeline or specified by using the **Value** parameter.

If you need to create files or directories for the following examples, see [New-Item](New-Item.md).

Expand All @@ -54,7 +53,7 @@ Add-Content -Path .\*.txt -Exclude help* -Value 'End of file'

The **Path** parameter specifies all `.txt` files in the current directory, but the **Exclude**
parameter ignores file names that match the specified pattern. The **Value** parameter specifies the
text string that is written to the files.
text string that's written to the files.

Use [Get-Content](Get-Content.md) to display the contents of these files.

Expand All @@ -76,7 +75,7 @@ Tuesday, May 14, 2019 8:24:27 AM

The `Add-Content` cmdlet creates two new files in the current directory. The **Value** parameter
contains the output of the `Get-Date` cmdlet. The **PassThru** parameter outputs the added contents
to the pipeline. Because there is no other cmdlet to receive the output, it is displayed in the
to the pipeline. Because there is no other cmdlet to receive the output, it's displayed in the
PowerShell console. The `Get-Content` cmdlet displays the updated file, `DateTimeFile1.log`.

### Example 3: Add the contents of a specified file to another file
Expand Down Expand Up @@ -195,7 +194,7 @@ Accept wildcard characters: False
### -Credential
> [!NOTE]
> This parameter is not supported by any providers installed with PowerShell.
> This parameter isn't supported by any providers installed with PowerShell.
> To impersonate another user, or elevate your credentials when running this cmdlet,
> use [Invoke-Command](../Microsoft.PowerShell.Core/Invoke-Command.md).
Expand Down Expand Up @@ -281,7 +280,7 @@ installed PowerShell provider that supports the use of filters. You can find the
**FileSystem** filter language in
[about_Wildcards](../Microsoft.PowerShell.Core/About/about_Wildcards.md). Filters are more efficient
than other parameters, because the provider applies them when the cmdlet gets the objects rather
than having PowerShell filter the objects after they are retrieved.
than having PowerShell filter the objects after they're retrieved.

```yaml
Type: System.String
Expand All @@ -298,7 +297,7 @@ Accept wildcard characters: True
### -Force

Overrides the read-only attribute, allowing you to add content to a read-only file. For example,
**Force** overrides the read-only attribute but it does not change file permissions.
**Force** overrides the read-only attribute but it doesn't change file permissions.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down Expand Up @@ -334,7 +333,7 @@ Accept wildcard characters: True

### -LiteralPath

Specifies a path to one or more locations. The value of **LiteralPath** is used exactly as it is
Specifies a path to one or more locations. The value of **LiteralPath** is used exactly as it's
typed. No characters are interpreted as wildcards. If the path includes escape characters, enclose
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
as escape sequences.
Expand All @@ -356,7 +355,7 @@ Accept wildcard characters: False

### -NoNewline

Indicates that this cmdlet does not add a new line or carriage return to the content.
Indicates that this cmdlet doesn't add a new line or carriage return to the content.

The string representations of the input objects are concatenated to form the output. No spaces or
newlines are inserted between the output strings. No newline is added after the last output string.
Expand All @@ -375,7 +374,7 @@ Accept wildcard characters: False

### -PassThru

Returns an object representing the added content. By default, this cmdlet does not generate any
Returns an object representing the added content. By default, this cmdlet doesn't generate any
output.

```yaml
Expand Down Expand Up @@ -414,14 +413,14 @@ Accept wildcard characters: True
> [!NOTE]
> This Parameter is only available on Windows.

Specifies an alternative data stream for content. If the stream does not exist, this cmdlet creates
it. Wildcard characters are not supported.
Specifies an alternative data stream for content. If the stream doesn't exist, this cmdlet creates
it. Wildcard characters aren't supported.

**Stream** is a dynamic parameter that the FileSystem provider adds to `Add-Content`. This
parameter works only in file system drives.

You can use the `Add-Content` cmdlet to change the content of any alternate data stream, such as
`Zone.Identifier`. However, we do not recommend this as a way to eliminate security checks that
`Zone.Identifier`. However, we don't recommend this as a way to eliminate security checks that
block files that are downloaded from the Internet. If you verify that a downloaded file is safe, use
the `Unblock-File` cmdlet.

Expand All @@ -447,7 +446,7 @@ Specifies the content to be added. Type a quoted string, such as **This data is
only**, or specify an object that contains content, such as the **DateTime** object that `Get-Date`
generates.

You cannot specify the contents of a file by typing its path, because the path is just a string.
You can't specify the contents of a file by typing its path, because the path is just a string.
You can use a `Get-Content` command to get the content and pass it to the **Value** parameter.

```yaml
Expand Down Expand Up @@ -480,7 +479,7 @@ Accept wildcard characters: False

### -WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.
Shows what would happen if the cmdlet runs. The cmdlet isn't run.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down Expand Up @@ -529,7 +528,7 @@ PowerShell includes the following aliases for `Add-Content`:
- Windows:
- `ac`

- When you pipe an object to `Add-Content`, the object is converted to a string before it is added
- When you pipe an object to `Add-Content`, the object is converted to a string before it's added
to the item. The object type determines the string format, but the format might be different than
the default display of the object. To control the string format, use the formatting parameters of
the sending cmdlet.
Expand Down
Loading

0 comments on commit c066d28

Please sign in to comment.