Fixes #13137 - Fix description of -UseNewEnvironment#13138
Conversation
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 |
There was a problem hiding this comment.
Pull request overview
Updates the Start-Process reference docs to correct the Windows behavior description for -UseNewEnvironment, aligning it with the reported behavior that User-scope environment variables are included (while process-inherited variables are not).
Changes:
- Rewrites the
-UseNewEnvironmentparameter description to describe “default” environment variables rather than inheriting the parent process environment. - Clarifies that on Windows the default environment includes variables from both Machine and User scopes.
- Updates
ms.dateacross affected versioned reference pages.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| reference/7.4/Microsoft.PowerShell.Management/Start-Process.md | Corrects -UseNewEnvironment Windows behavior description; updates ms.date. |
| reference/7.5/Microsoft.PowerShell.Management/Start-Process.md | Corrects -UseNewEnvironment Windows behavior description; updates ms.date. |
| reference/7.6/Microsoft.PowerShell.Management/Start-Process.md | Corrects -UseNewEnvironment Windows behavior description; updates ms.date. |
| reference/7.7/Microsoft.PowerShell.Management/Start-Process.md | Corrects -UseNewEnvironment Windows behavior description; updates ms.date. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Learn Build status updates of commit 2914218: ✅ Validation status: passed
For more details, please refer to the build report. |
PR Summary
Fix description of -UseNewEnvironment
PR Checklist