Skip to content

(AB-568561) Use "[switch] parameter" in reference content#12937

Merged
sdwheeler merged 6 commits intoMicrosoftDocs:mainfrom
michaeltlombardi:ab-568561/main/switch-parameter-reference
Apr 8, 2026
Merged

(AB-568561) Use "[switch] parameter" in reference content#12937
sdwheeler merged 6 commits intoMicrosoftDocs:mainfrom
michaeltlombardi:ab-568561/main/switch-parameter-reference

Conversation

@michaeltlombardi
Copy link
Copy Markdown
Contributor

PR Summary

This change updates the reference content across versions to standardize on referring to parameters of the System.Management.Automation.SwitchParameter type as `[switch]` parameters instead of switch parameters to prevent overlocalization issues.

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 April 8, 2026 15:40
@learn-build-service-prod

This comment was marked as off-topic.

@sdwheeler sdwheeler force-pushed the ab-568561/main/switch-parameter-reference branch from 0dfbd2e to 4bd4fb3 Compare April 8, 2026 15:43
@learn-build-service-prod

This comment was marked as outdated.

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

Standardizes PowerShell reference documentation to refer to System.Management.Automation.SwitchParameter-typed parameters as `[switch]` parameters (instead of “switch parameters”) to reduce overlocalization issues across multiple doc versions.

Changes:

  • Replaced “switch parameter(s)” phrasing with `[switch]` parameter(s) in reference and about_* content (PowerShell 7.6/7.5/7.4/5.1).
  • Updated related headings/sentences and reflowed paragraphs to accommodate the new inline-code terminology.
  • Removed an unprofessional HTML comment in about_Command_Syntax.

Reviewed changes

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

Show a summary per file
File Description
reference/7.6/Microsoft.PowerShell.Utility/Show-Command.md Terminology update to `[switch]` parameter in description text.
reference/7.6/Microsoft.PowerShell.Utility/ConvertTo-Json.md Terminology update to `[switch]` parameter in example narration.
reference/7.6/Microsoft.PowerShell.Management/Resolve-Path.md Terminology update to `[switch]` parameter in examples/parameter description.
reference/7.6/Microsoft.PowerShell.Core/Where-Object.md Terminology update to `[switch]` parameters in simplified syntax description.
reference/7.6/Microsoft.PowerShell.Core/Get-Help.md Terminology update to `[switch]` parameter in parameter description.
reference/7.6/Microsoft.PowerShell.Core/Disable-PSRemoting.md Terminology update to `[switch]` parameter in loopback connection notes.
reference/7.6/Microsoft.PowerShell.Core/About/about_Splatting.md Terminology update to `[switch]` parameters in splatting guidance.
reference/7.6/Microsoft.PowerShell.Core/About/about_Requires.md Terminology update to `[switch]` parameter for #Requires switch.
reference/7.6/Microsoft.PowerShell.Core/About/about_Pwsh.md Terminology update to `[switch]` parameters in -File section.
reference/7.6/Microsoft.PowerShell.Core/About/about_PowerShell_Editions.md Terminology update to `[switch]` parameter for -SkipEditionCheck.
reference/7.6/Microsoft.PowerShell.Core/About/about_Parameters_Default_Values.md Terminology update to `[switch]` parameters in defaults guidance.
reference/7.6/Microsoft.PowerShell.Core/About/about_Functions.md Terminology update (including heading) to `[switch]` parameters.
reference/7.6/Microsoft.PowerShell.Core/About/about_Command_Syntax.md Terminology update to `[switch]` parameters; removed unprofessional comment.
reference/7.6/CimCmdlets/New-CimSession.md Terminology update to `[switch]` parameter for -SkipTestConnection.
reference/7.5/Microsoft.PowerShell.Utility/Show-Command.md Terminology update to `[switch]` parameter in description text.
reference/7.5/Microsoft.PowerShell.Utility/ConvertTo-Json.md Terminology update to `[switch]` parameter in example narration.
reference/7.5/Microsoft.PowerShell.Management/Resolve-Path.md Terminology update to `[switch]` parameter in examples/parameter description.
reference/7.5/Microsoft.PowerShell.Core/Where-Object.md Terminology update to `[switch]` parameters in simplified syntax description.
reference/7.5/Microsoft.PowerShell.Core/Get-Help.md Terminology update to `[switch]` parameter in parameter description.
reference/7.5/Microsoft.PowerShell.Core/Disable-PSRemoting.md Terminology update to `[switch]` parameter in loopback connection notes.
reference/7.5/Microsoft.PowerShell.Core/About/about_Splatting.md Terminology update to `[switch]` parameters in splatting guidance.
reference/7.5/Microsoft.PowerShell.Core/About/about_Requires.md Terminology update to `[switch]` parameter for #Requires switch.
reference/7.5/Microsoft.PowerShell.Core/About/about_Pwsh.md Terminology update to `[switch]` parameters in -File section; also edits -CommandWithArgs status text.
reference/7.5/Microsoft.PowerShell.Core/About/about_PowerShell_Editions.md Terminology update to `[switch]` parameter for -SkipEditionCheck.
reference/7.5/Microsoft.PowerShell.Core/About/about_Parameters_Default_Values.md Terminology update to `[switch]` parameters in defaults guidance.
reference/7.5/Microsoft.PowerShell.Core/About/about_Functions.md Terminology update (including heading) to `[switch]` parameters.
reference/7.5/Microsoft.PowerShell.Core/About/about_Command_Syntax.md Terminology update to `[switch]` parameters; removed unprofessional comment.
reference/7.5/CimCmdlets/New-CimSession.md Terminology update to `[switch]` parameter for -SkipTestConnection.
reference/7.4/Microsoft.PowerShell.Utility/Show-Command.md Terminology update to `[switch]` parameter in description text.
reference/7.4/Microsoft.PowerShell.Utility/ConvertTo-Json.md Terminology update to `[switch]` parameter in example narration.
reference/7.4/Microsoft.PowerShell.Management/Resolve-Path.md Terminology update to `[switch]` parameter in examples/parameter description.
reference/7.4/Microsoft.PowerShell.Core/Where-Object.md Terminology update to `[switch]` parameters in simplified syntax description.
reference/7.4/Microsoft.PowerShell.Core/Get-Help.md Terminology update to `[switch]` parameter in parameter description.
reference/7.4/Microsoft.PowerShell.Core/Disable-PSRemoting.md Terminology update to `[switch]` parameter in loopback connection notes.
reference/7.4/Microsoft.PowerShell.Core/About/about_Splatting.md Terminology update to `[switch]` parameters in splatting guidance.
reference/7.4/Microsoft.PowerShell.Core/About/about_Requires.md Terminology update to `[switch]` parameter for #Requires switch.
reference/7.4/Microsoft.PowerShell.Core/About/about_Pwsh.md Terminology update to `[switch]` parameters in -File section.
reference/7.4/Microsoft.PowerShell.Core/About/about_PowerShell_Editions.md Terminology update to `[switch]` parameter for -SkipEditionCheck.
reference/7.4/Microsoft.PowerShell.Core/About/about_Parameters_Default_Values.md Terminology update to `[switch]` parameters in defaults guidance.
reference/7.4/Microsoft.PowerShell.Core/About/about_Functions.md Terminology update (including heading) to `[switch]` parameters.
reference/7.4/Microsoft.PowerShell.Core/About/about_Command_Syntax.md Terminology update to `[switch]` parameters; removed unprofessional comment.
reference/7.4/CimCmdlets/New-CimSession.md Terminology update to `[switch]` parameter for -SkipTestConnection.
reference/5.1/Microsoft.PowerShell.Utility/Show-Command.md Terminology update to `[switch]` parameter in description text.
reference/5.1/Microsoft.PowerShell.Core/Where-Object.md Terminology update to `[switch]` parameters in simplified syntax description.
reference/5.1/Microsoft.PowerShell.Core/Get-Help.md Terminology update to `[switch]` parameter in parameter description.
reference/5.1/Microsoft.PowerShell.Core/Disable-PSRemoting.md Terminology update to `[switch]` parameter in loopback connection notes.
reference/5.1/Microsoft.PowerShell.Core/About/about_Splatting.md Terminology update to `[switch]` parameters in splatting guidance.
reference/5.1/Microsoft.PowerShell.Core/About/about_Requires.md Terminology update to `[switch]` parameter for #Requires switch.
reference/5.1/Microsoft.PowerShell.Core/About/about_Parameters_Default_Values.md Terminology update to `[switch]` parameters in defaults guidance.
reference/5.1/Microsoft.PowerShell.Core/About/about_Functions.md Terminology update (including heading) to `[switch]` parameters.
reference/5.1/Microsoft.PowerShell.Core/About/about_Command_Syntax.md Terminology update to `[switch]` parameters; removed unprofessional comment.
reference/5.1/CimCmdlets/New-CimSession.md Terminology update to `[switch]` parameter for -SkipTestConnection.

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

@learn-build-service-prod

This comment was marked as outdated.

@learn-build-service-prod

This comment was marked as outdated.

@learn-build-service-prod

This comment was marked as outdated.

@learn-build-service-prod

This comment was marked as outdated.

@michaeltlombardi michaeltlombardi force-pushed the ab-568561/main/switch-parameter-reference branch from 4fed816 to 3fcb6b9 Compare April 8, 2026 16:03
@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 3fcb6b9:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/CimCmdlets/New-CimSession.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Core/About/about_Command_Syntax.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Core/About/about_Functions.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Core/About/about_Parameters_Default_Values.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Core/About/about_Requires.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Core/About/about_Splatting.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Core/Disable-PSRemoting.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Core/Get-Help.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Core/Where-Object.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Utility/Show-Command.md ✅Succeeded View (powershell-5.1)
reference/7.4/CimCmdlets/New-CimSession.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/About/about_Command_Syntax.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/About/about_Functions.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/About/about_Parameters_Default_Values.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/About/about_PowerShell_Editions.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/About/about_Pwsh.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/About/about_Requires.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/About/about_Splatting.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/Disable-PSRemoting.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/Get-Help.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/Where-Object.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Resolve-Path.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Utility/ConvertTo-Json.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Utility/Show-Command.md ✅Succeeded View (powershell-7.4)
reference/7.5/CimCmdlets/New-CimSession.md ✅Succeeded View (powershell-7.5)

This comment lists only the first 25 files in the pull request.
For more details, please refer to the build report.

@michaeltlombardi michaeltlombardi changed the title (AB-568561) Use ` [switch] parameter ` in reference content (AB-568561) Use "[switch] parameter" in reference content Apr 8, 2026
@sdwheeler sdwheeler merged commit 9fc54e7 into MicrosoftDocs:main Apr 8, 2026
6 checks passed
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.

3 participants