Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions redir/.openpublishing.redirection.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"redirections": [
{
"redirect_document_id": false,
"redirect_url": "/powershell/scripting/install/alternate-install-methods",
"source_path": "../reference/docs-conceptual/install/install-other-linux.md"
},
{
"redirect_document_id": false,
"redirect_url": "/powershell/scripting/security/app-control/how-to-use-app-control",
Expand Down
30 changes: 16 additions & 14 deletions reference/5.1/Microsoft.PowerShell.Management/Get-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: 01/18/2026
ms.date: 03/11/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-content?view=powershell-5.1&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand Down Expand Up @@ -58,8 +58,8 @@ Get-Content -Path .\LineNumbers.txt
```

```Output
This is Line 1
This is Line 2
This is line 1.
This is line 2.
...
This is line 99.
This is line 100.
Expand All @@ -81,11 +81,11 @@ Get-Content -Path .\LineNumbers.txt -TotalCount 5
```

```Output
This is Line 1
This is Line 2
This is Line 3
This is Line 4
This is Line 5
This is line 1.
This is line 2.
This is line 3.
This is line 4.
This is line 5.
```

### Example 3: Get a specific line of content from a text file
Expand All @@ -99,7 +99,7 @@ that content. The **TotalCount** parameter gets the first 25 lines of content. T
```

```Output
This is Line 25
This is line 25.
```

The `Get-Content` command is wrapped in parentheses so that the command completes before going to
Expand All @@ -117,7 +117,7 @@ Get-Item -Path .\LineNumbers.txt | Get-Content -Tail 1
```

```Output
This is Line 100
This is line 100.
```

This example uses the `Get-Item` cmdlet to demonstrate that you can pipe files to `Get-Content`. The
Expand All @@ -132,7 +132,8 @@ to create sample content in a file named `Stream.txt`.

```powershell
Set-Content -Path .\Stream.txt -Value 'This is the content of the Stream.txt file'
# Specify a wildcard to the Stream parameter to display all streams of the recently created file.
# Specify a wildcard to the Stream parameter to display all streams of the recently
# created file.
Get-Item -Path .\Stream.txt -Stream *
```

Expand Down Expand Up @@ -171,7 +172,8 @@ This is the content of the Stream.txt file
```

```powershell
# Use the Stream parameter of Add-Content to create a new Stream containing sample content.
# Use the Stream parameter of Add-Content to create a new Stream containing sample
# content.
$addContentSplat = @{
Path = '.\Stream.txt'
Stream = 'NewStream'
Expand Down Expand Up @@ -215,7 +217,7 @@ Added a stream named NewStream to Stream.txt
```

The **Stream** parameter is a dynamic parameter of the
[FileSystem provider](../microsoft.powershell.core/about/about_filesystem_provider.md#stream-string).
[FileSystem provider](../Microsoft.PowerShell.Core/About/about_FileSystem_Provider.md#stream-string).
By default `Get-Content` only retrieves data from the default, or `:$DATA` stream. **Streams** can
be used to store hidden data such as attributes, security settings, or other data. They can also be
stored on directories without being child items.
Expand Down Expand Up @@ -457,7 +459,7 @@ it in single quotation marks. Single quotation marks tell PowerShell not to inte
as escape sequences.

For more information, see
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
[about_Quoting_Rules](../Microsoft.PowerShell.Core/About/about_Quoting_Rules.md).

```yaml
Type: System.String[]
Expand Down
20 changes: 10 additions & 10 deletions reference/7.4/Microsoft.PowerShell.Management/Get-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: 01/18/2026
ms.date: 03/11/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-content?view=powershell-7.4&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand Down Expand Up @@ -60,8 +60,8 @@ Get-Content -Path .\LineNumbers.txt
```

```Output
This is Line 1
This is Line 2
This is line 1.
This is line 2.
...
This is line 99.
This is line 100.
Expand All @@ -83,11 +83,11 @@ Get-Content -Path .\LineNumbers.txt -TotalCount 5
```

```Output
This is Line 1
This is Line 2
This is Line 3
This is Line 4
This is Line 5
This is line 1.
This is line 2.
This is line 3.
This is line 4.
This is line 5.
```

### Example 3: Get a specific line of content from a text file
Expand All @@ -101,7 +101,7 @@ that content. The **TotalCount** parameter gets the first 25 lines of content. T
```

```Output
This is Line 25
This is line 25.
```

The `Get-Content` command is wrapped in parentheses so that the command completes before going to
Expand All @@ -119,7 +119,7 @@ Get-Item -Path .\LineNumbers.txt | Get-Content -Tail 1
```

```Output
This is Line 100
This is line 100.
```

This example uses the `Get-Item` cmdlet to demonstrate that you can pipe files to `Get-Content`. The
Expand Down
20 changes: 10 additions & 10 deletions reference/7.5/Microsoft.PowerShell.Management/Get-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: 01/18/2026
ms.date: 03/11/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-content?view=powershell-7.5&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand Down Expand Up @@ -60,8 +60,8 @@ Get-Content -Path .\LineNumbers.txt
```

```Output
This is Line 1
This is Line 2
This is line 1.
This is line 2.
...
This is line 99.
This is line 100.
Expand All @@ -83,11 +83,11 @@ Get-Content -Path .\LineNumbers.txt -TotalCount 5
```

```Output
This is Line 1
This is Line 2
This is Line 3
This is Line 4
This is Line 5
This is line 1.
This is line 2.
This is line 3.
This is line 4.
This is line 5.
```

### Example 3: Get a specific line of content from a text file
Expand All @@ -101,7 +101,7 @@ that content. The **TotalCount** parameter gets the first 25 lines of content. T
```

```Output
This is Line 25
This is line 25.
```

The `Get-Content` command is wrapped in parentheses so that the command completes before going to
Expand All @@ -119,7 +119,7 @@ Get-Item -Path .\LineNumbers.txt | Get-Content -Tail 1
```

```Output
This is Line 100
This is line 100.
```

This example uses the `Get-Item` cmdlet to demonstrate that you can pipe files to `Get-Content`. The
Expand Down
20 changes: 10 additions & 10 deletions reference/7.6/Microsoft.PowerShell.Management/Get-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: 01/18/2026
ms.date: 03/11/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-content?view=powershell-7.6&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand Down Expand Up @@ -60,8 +60,8 @@ Get-Content -Path .\LineNumbers.txt
```

```Output
This is Line 1
This is Line 2
This is line 1.
This is line 2.
...
This is line 99.
This is line 100.
Expand All @@ -83,11 +83,11 @@ Get-Content -Path .\LineNumbers.txt -TotalCount 5
```

```Output
This is Line 1
This is Line 2
This is Line 3
This is Line 4
This is Line 5
This is line 1.
This is line 2.
This is line 3.
This is line 4.
This is line 5.
```

### Example 3: Get a specific line of content from a text file
Expand All @@ -101,7 +101,7 @@ that content. The **TotalCount** parameter gets the first 25 lines of content. T
```

```Output
This is Line 25
This is line 25.
```

The `Get-Content` command is wrapped in parentheses so that the command completes before going to
Expand All @@ -119,7 +119,7 @@ Get-Item -Path .\LineNumbers.txt | Get-Content -Tail 1
```

```Output
This is Line 100
This is line 100.
```

This example uses the `Get-Item` cmdlet to demonstrate that you can pipe files to `Get-Content`. The
Expand Down
3 changes: 2 additions & 1 deletion reference/docs-conceptual/community/community-support.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
description: List of resources created for and by PowerShell users
ms.date: 03/30/2025
ms.date: 03/10/2026
no-loc: [Discord, Slack, Spiceworks, "Stack Overflow" ]
title: PowerShell community support resources
---
# Getting support from the community
Expand Down
Loading