Document -WindowStyle Hidden behavior change on Windows 11 24H2+
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- powershell
- Domain
- documentation
Research direction
Start with the -WindowStyle parameter section in about_pwsh and review the behavior described for pwsh -WindowStyle Hidden. Update it to distinguish Windows 11 24H2+ (build 26100+) from earlier versions, then verify that the documented behavior matches the issue's table and related fix.
Written by the indexing model from the issue text.
Description
Summary
PowerShell/PowerShell#27111 fixes PowerShell/PowerShell#3028 by eliminating the console window flash when launching pwsh -WindowStyle Hidden on Windows 11 24H2+ (build 26100+).
The fix uses consoleAllocationPolicy=detached in the pwsh.exe manifest and AllocConsoleWithOptions to allocate the console programmatically — invisibly when -WindowStyle Hidden is specified.
Pages to update
about_pwsh— The-WindowStyleparameter section should note that on Windows 11 24H2+,-WindowStyle Hiddenprevents console window creation entirely (rather than creating then hiding).
Behavior change
| Windows version | Old behavior | New behavior |
|---|---|---|
| Before build 26100 | Console window flashes briefly, then hides | Unchanged |
| Build 26100+ | Console window flashes briefly, then hides | No console window created |
Related
- Fix PR: PowerShell/PowerShell#27111
- Issue: PowerShell/PowerShell#3028 (open since January 2017, 160+ upvotes)
- Dominant language
- PowerShell
- Stars
- 2.5k
- Forks
- 1.7k
- Avg merge
- 8h 45m
- Merged PRs (30d)
- 33
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MicrosoftDocs/PowerShell-Docs
-
hold-for-pr hold-for-release issue-doc-idea
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
MicrosoftDocs/PowerShell-Docs#13195 ·
-
Add "Avoid function / scriptblock based recursion" section to `Performance Considerations` document Openarea-sdk-docs
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
MicrosoftDocs/PowerShell-Docs#11037 · 1 reaction ·
-
issue-doc-idea needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
MicrosoftDocs/PowerShell-Docs#13289 ·
-
hold-for-pr hold-for-release
Difficulty 4/5 3-5 days Newbie friendliness 48/100
MicrosoftDocs/PowerShell-Docs#13172 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
MicrosoftDocs/PowerShell-Docs#12948 · 2 reactions ·
All issues in MicrosoftDocs/PowerShell-Docs
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Ecosystem: ClawMetry — the Qwen Code reader is now free and open source (follow-up to #9294 / #9338) Opencategory/integration priority/P3 scope/documentation status/ready-for-human type/feature-request
Difficulty 1/5 Under an hour Newbie friendliness 84/100