(AB-538621) Extend Write-Host note for non-primitive types#12913
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Pull request overview
Updates the Write-Host reference documentation (AB#538621) to better explain why non-primitive inputs can yield unhelpful output and to recommend alternatives with a short example.
Changes:
- Expanded the NOTES section to include recommended approaches (string interpolation,
-f,Out-String) with a sample snippet. - Converted several inline links to reference-style links and added link definitions at the bottom.
- Refreshed
ms.datemetadata across versions.
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.Utility/Write-Host.md | Extends NOTES guidance and refactors links to reference-style definitions. |
| reference/7.5/Microsoft.PowerShell.Utility/Write-Host.md | Same doc updates applied to the 7.5 version. |
| reference/7.4/Microsoft.PowerShell.Utility/Write-Host.md | Same doc updates applied to the 7.4 version. |
| reference/5.1/Microsoft.PowerShell.Utility/Write-Host.md | Same doc updates applied to the Windows PowerShell 5.1 version. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d7f2d7a to
a59bcdb
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a59bcdb to
b7efbc4
Compare
PoliCheck Scan ReportThe 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 foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit b7efbc4: ✅ Validation status: passed
For more details, please refer to the build report. |
PR Summary
This PR fixes AB#538621 by extending the note about
Write-Hosthaving unexpected / not-useful output for objects by recommending approaches and showing a short example.PR Checklist