Skip to content

Fixes #13137 - Fix description of -UseNewEnvironment#13138

Merged
sdwheeler merged 1 commit into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w594576-i13137-useenv
Jul 6, 2026
Merged

Fixes #13137 - Fix description of -UseNewEnvironment#13138
sdwheeler merged 1 commit into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w594576-i13137-useenv

Conversation

@sdwheeler

@sdwheeler sdwheeler commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

PR Summary

Fix description of -UseNewEnvironment

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 July 6, 2026 12:30
@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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 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 -UseNewEnvironment parameter 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.date across 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-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 2914218:

✅ Validation status: passed

File Status Preview URL Details
reference/7.4/Microsoft.PowerShell.Management/Start-Process.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Management/Start-Process.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Management/Start-Process.md ✅Succeeded View (powershell-7.6)
reference/7.7/Microsoft.PowerShell.Management/Start-Process.md ✅Succeeded View (powershell-7.7)

For more details, please refer to the build report.

@sdwheeler sdwheeler merged commit 9733ba1 into MicrosoftDocs:main Jul 6, 2026
7 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.

[Start-Process] -UseNewEnvironment parameter behavior change on Windows

2 participants