Skip to content

Fixes #12836 - Fix accuracy of the output in examples#12840

Merged
sdwheeler merged 1 commit intoMicrosoftDocs:mainfrom
sdwheeler:sdw-w560294-i12836-fix-output
Mar 11, 2026
Merged

Fixes #12836 - Fix accuracy of the output in examples#12840
sdwheeler merged 1 commit intoMicrosoftDocs:mainfrom
sdwheeler:sdw-w560294-i12836-fix-output

Conversation

@sdwheeler
Copy link
Copy Markdown
Collaborator

@sdwheeler sdwheeler commented Mar 11, 2026

PR Summary

Fix accuracy of the output in examples

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributor's guide.
  • Style: This PR adheres to the style guide.

Copilot AI review requested due to automatic review settings March 11, 2026 13:56
@learn-build-service-prod
Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

Learn Build status updates of commit ecde2a2:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Management/Get-Content.md ✅Succeeded View (powershell-5.1)
reference/7.4/Microsoft.PowerShell.Management/Get-Content.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Management/Get-Content.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Management/Get-Content.md ✅Succeeded View (powershell-7.6)

For more details, please refer to the build report.

@sdwheeler sdwheeler merged commit f901675 into MicrosoftDocs:main Mar 11, 2026
11 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Get-Content reference documentation to ensure example outputs accurately reflect the example commands and generated file content across multiple PowerShell versions.

Changes:

  • Fix example output lines to include trailing periods and consistent casing (line vs Line) in multiple versions.
  • Update ms.date metadata to reflect the documentation change date.
  • (5.1) Wrap long comment lines in code blocks and fix casing in cross-reference links to Microsoft.PowerShell.Core About topics.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
reference/7.6/Microsoft.PowerShell.Management/Get-Content.md Corrects example output text/formatting and updates ms.date.
reference/7.5/Microsoft.PowerShell.Management/Get-Content.md Corrects example output text/formatting and updates ms.date.
reference/7.4/Microsoft.PowerShell.Management/Get-Content.md Corrects example output text/formatting and updates ms.date.
reference/5.1/Microsoft.PowerShell.Management/Get-Content.md Corrects example output text/formatting, wraps long comments, and fixes link casing; updates ms.date.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 62 to 66
```Output
This is Line 1
This is Line 2
This is line 1.
This is line 2.
...
This is line 99.
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Example 1, the prose says the file uses the format "This is Line X", but the example code and the updated output show "This is line X." (lowercase "line" + trailing period). To keep the example accurate, update the description sentence to match the actual generated content/output format.

Copilot uses AI. Check for mistakes.
Comment on lines 62 to 66
```Output
This is Line 1
This is Line 2
This is line 1.
This is line 2.
...
This is line 99.
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Example 1, the description states the file format is "This is Line X", but the example code and updated output show "This is line X." (lowercase + trailing period). Please update the description to match the actual content/output so the example remains accurate.

Copilot uses AI. Check for mistakes.
Comment on lines 62 to 66
```Output
This is Line 1
This is Line 2
This is line 1.
This is line 2.
...
This is line 99.
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Example 1, the narrative says the file is formatted as "This is Line X", but the example code and updated output use "This is line X." (lowercase + period). Update the description text to align with the actual generated content/output.

Copilot uses AI. Check for mistakes.
Comment on lines 60 to 64
```Output
This is Line 1
This is Line 2
This is line 1.
This is line 2.
...
This is line 99.
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Example 1, the prose says the file lines are in the format "This is Line X", but the example command and the updated output are "This is line X." (lowercase + trailing period). Please update the description sentence to match the actual content/output format.

Copilot uses AI. Check for mistakes.
@sdwheeler sdwheeler deleted the sdw-w560294-i12836-fix-output branch March 12, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

. lost in help file for Get-Content

2 participants