GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove the 32,767 character limit on the environment block for `Start-Process` by hbuckle · Pull Request #14111 · PowerShell/PowerShell

Conversation

@hbuckle

@hbuckle Henry Buckle (hbuckle) commented Nov 17, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

PR Summary

Remove the 32,767 character limit on the environment block for Start-Process
fixes #14110

PR Context

This limit only applied to Windows XP/Server 2003 - newer versions of Windows have no limitation (source)

PR Checklist

  • PR has a meaningful title
    • Use the present tense and imperative mood when describing your changes
  • Summarized changes
  • Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
  • This PR is ready to merge and is not Work in Progress.
    • If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.
  • Breaking changes
    • None
    • OR
    • Experimental feature(s) needed
      • Experimental feature name(s):
  • User-facing changes
    • Not Applicable
    • OR
    • Documentation needed
      • Issue filed:
  • Testing - New and feature
    • N/A or can only be tested interactively
    • OR
    • Make sure you've added a new test if existing tests do not effectively test the code changed
  • Tooling
    • I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
    • OR
    • I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:
      • Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode (which runs in a different PS Host).
      • Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
      • Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).
      • Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

pagejess009 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@hbuckle
remove check for environment block length
d741f8f
@hbuckle
Henry Buckle (hbuckle) requested review from Aditya Patwardhan (adityapatwardhan) and Dongbo Wang (daxian-dbw) as code owners November 17, 2020 16:52
@ghost ghost assigned Travis Plunk (TravisEz13) Nov 17, 2020
iSazonov
Ilya (iSazonov) approved these changes Nov 18, 2020
View reviewed changes
@iSazonov Ilya (iSazonov) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Nov 18, 2020
@AmyJeanes Amy Jeanes (AmyJeanes) mentioned this pull request Nov 19, 2020
Start-Process fails with EnvironmentBlockTooLong error #14110
Closed
@iSazonov
Ilya (iSazonov) requested a review from Steve Lee (SteveL-MSFT) November 20, 2020 03:16
@AmyJeanes

Amy Jeanes (AmyJeanes) commented Nov 24, 2020

Copy link
Copy Markdown

This pull request indirectly fixes a accidental breaking change in PowerShell 7.0 -> 7.1 which affects most notably Azure DevOps pipelines with many artifacts - is this going to make it into a patch release soon? We're having to add work arounds to our code now for the linked issue as Azure Pipelines agents have updated to PowerShell 7.1.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@iSazonov Ilya (iSazonov) added the BackPort-7.1.x-Consider label Nov 24, 2020
@ghost ghost added the Review - Needed The PR is being reviewed label Dec 2, 2020
@ghost

Deleted user (ghost) commented Dec 2, 2020

Copy link
Copy Markdown

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rjmholt
Rob Holt (rjmholt) requested a review from James Truher (JamesWTruher) January 11, 2021 23:53
@adityapatwardhan

Aditya Patwardhan (adityapatwardhan) commented Mar 2, 2021

Copy link
Copy Markdown
Member

Travis Plunk (@TravisEz13) Can you review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ghost ghost removed the Review - Needed The PR is being reviewed label Mar 2, 2021
rjmholt
Rob Holt (rjmholt) approved these changes Mar 2, 2021
View reviewed changes
@adityapatwardhan Aditya Patwardhan (adityapatwardhan) added BackPort-7.1.x-Approved and removed BackPort-7.1.x-Consider labels Mar 2, 2021
@TravisEz13
Travis Plunk (TravisEz13) merged commit 9aede05 into PowerShell:master Mar 2, 2021
@adityapatwardhan Aditya Patwardhan (adityapatwardhan) added Backport-7.1.x-Done Backport to 7.1.x completed and removed BackPort-7.1.x-Approved labels Mar 9, 2021
@ghost

Deleted user (ghost) commented Mar 11, 2021

Copy link
Copy Markdown

🎉v7.1.3 has been released which incorporates this pull request.:tada:

Handy links:

  • Release Notes
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Mar 12, 2021
Bump Microsoft.PowerShell.SDK from 7.0.3 to 7.1.3 hsaito/PSOpenLocationCode#15
Closed
Bump Microsoft.PowerShell.SDK from 7.0.3 to 7.1.3 hsaito/PremiumFriday#18
Closed
build(deps): bump Microsoft.PowerShell.SDK from 6.0.4 to 7.1.3 Valks/DotNetCorePlugins#4
Closed
Bump System.Management.Automation from 7.1.1 to 7.1.3 iricigor/PS-azmi#47
Open
Bump Microsoft.PowerShell.Commands.Diagnostics from 6.2.1 to 7.1.3 Accenture/Ocaramba#190
Closed
Thomas May (WamWooWam) pushed a commit to WamWooWam/PowerShell that referenced this pull request Mar 16, 2021
@hbuckle @adityapatwardhan
Remove the 32,767 character limit on the environment block for `Start…
58b7fe2
…-Process` (PowerShell#14111)
Thomas May (WamWooWam) added a commit to WamWooWam/PowerShell that referenced this pull request Mar 16, 2021
@WamWooWam
Merge tag 'v7.1.3' into powercord
3cc3e1d
[7.1.3] - 2021-03-11

*** Engine Updates and Fixes

- Remove the 32K character limit on the environment block for `Start-Process` (PowerShell#14111)
- Fix webcmdlets to properly construct URI from body when using `-NoProxy` (PowerShell#14673)

*** General Cmdlet Updates and Fixes

- Fix `PromptForCredential()` to add `targetName` as domain (PowerShell#14504)

*** Build and Packaging Improvements

<details>

<summary>

Bump .NET SDK to 5.0.4

</summary>

<ul>
<li>Bump .NET SDK to 5.0.4 (Internal 14775)</li>
<li>Disable running markdown link verification in release build CI (PowerShell#14971, PowerShell#14974, PowerShell#14975)</li>
<li>Use template that disables component governance for CI (PowerShell#14938)</li>
<li>Declare which variable group is used for checking the blob in the release build (PowerShell#14970)</li>
<li>Add suppress for nuget multi-feed warning (PowerShell#14893)</li>
<li>Disable code signing validation where the file type is not supported (PowerShell#14885)</li>
<li>Install wget on <code>CentOS</code> 7 docker image (PowerShell#14857)</li>
<li>Fix install-dotnet download (PowerShell#14856)</li>
<li>Make universal Deb package based on deb package spec (PowerShell#14681)</li>
<li>Fix release build to upload global tool packages to artifacts (PowerShell#14620)</li>
<li>Update <code>ini</code> component version in test <code>package.json</code> (PowerShell#14454)</li>
<li>Add manual release automation steps and improve changelog script (PowerShell#14445)</li>
<li>Update markdown test packages with security fixes (PowerShell#14145)</li>
<li>Fix a typo in the <code>Get-ChangeLog</code> function (PowerShell#14129)</li>
<li>Disable global tool copy to unblock release</li>
</ul>

</details>

[7.1.3]: PowerShell/PowerShell@v7.1.2...v7.1.3
@ghost

Deleted user (ghost) commented Mar 16, 2021

Copy link
Copy Markdown

🎉v7.2.0-preview.4 has been released which incorporates this pull request.:tada:

Handy links:

  • Release Notes
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Mar 17, 2021
Bump Microsoft.PowerShell.SDK from 6.2.1 to 7.1.3 Accenture/Ocaramba#191
Closed
Bump Microsoft.WSMan.Management from 6.2.1 to 7.1.3 Accenture/Ocaramba#196
Closed
@unfurl-links unfurl-links Bot mentioned this pull request May 13, 2021
MSI PowerShell installers should be Microsoft signed #15335
Closed
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
@hbuckle
Remove the 32,767 character limit on the environment block for `Start…
13cf1c1
…-Process` (PowerShell#14111)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@iSazonov Ilya (iSazonov) iSazonov approved these changes
@adityapatwardhan Aditya Patwardhan (adityapatwardhan) Awaiting requested review from adityapatwardhan
@daxian-dbw Dongbo Wang (daxian-dbw) Awaiting requested review from daxian-dbw
@SteveL-MSFT Steve Lee (SteveL-MSFT) Awaiting requested review from SteveL-MSFT
@JamesWTruher James Truher (JamesWTruher) Awaiting requested review from JamesWTruher
+1 more reviewer
@rjmholt Rob Holt (rjmholt) rjmholt approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@TravisEz13 Travis Plunk (TravisEz13)

Labels

Backport-7.1.x-Done Backport to 7.1.x completed CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Start-Process fails with EnvironmentBlockTooLong error

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@hbuckle @AmyJeanes @adityapatwardhan @rjmholt @iSazonov @TravisEz13
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.