Skip to content

Tags: PowerShell/PowerShell

Tags

v7.5.0-preview.4

Toggle v7.5.0-preview.4's commit message
* [7.5.0-preview.4] - 2024-08-28

* Engine Updates and Fixes

- RecommendedAction: Explicitly start and stop ANSI Error Color (#24065) (Thanks @JustinGrote!)
- Improve .NET overload definition of generic methods (#21326) (Thanks @jborean93!)
- Optimize the ` =` operation for a collection when it's an object array (#23901) (Thanks @jborean93!)
- Allow redirecting to a variable as experimental feature `PSRedirectToVariable` (#20381)

* General Cmdlet Updates and Fixes

- Change type of `LineNumber` to `ulong` in `Select-String` (#24075) (Thanks @Snowman-25!)
- Fix `Invoke-RestMethod` to allow `-PassThru` and `-Outfile` work together (#24086) (Thanks @jshigetomi!)
- Fix Hyper-V Remoting when the module is imported via implicit remoting (#24032) (Thanks @jborean93!)
- Add `ConvertTo-CliXml` and `ConvertFrom-CliXml` cmdlets (#21063) (Thanks @ArmaanMcleod!)
- Add `OutFile` property in `WebResponseObject` (#24047) (Thanks @jshigetomi!)
- Show filename in `Invoke-WebRequest -OutFile -Verbose` (#24041) (Thanks @jshigetomi!)
- `Set-Acl`: Do not fail on untranslatable SID (#21096) (Thanks @jborean93!)
- Fix the extent of the parser error when a number constant is invalid (#24024)
- Fix `Move-Item` to throw error when moving into itself (#24004)
- Fix up .NET method invocation with `Optional` argument (#21387) (Thanks @jborean93!)
- Fix progress calculation on `Remove-Item` (#23869) (Thanks @jborean93!)
- Fix WebCmdlets when `-Body` is specified but `ContentType` is not (#23952) (Thanks @CarloToso!)
- Enable `-NoRestart` to work with `Register-PSSessionConfiguration` (#23891)
- Add `IgnoreComments` and `AllowTrailingCommas` options to `Test-Json` cmdlet (#23817) (Thanks @ArmaanMcleod!)
- Get-Help may report parameters with `ValueFromRemainingArguments` attribute as pipeline-able (#23871)

* Code Cleanup

<details>

<summary>

<p>We thank the following contributors!</p>
<p>@xtqqczze, @eltociear</p>

</summary>

<ul>
<li>Minor cleanup on local variable names within a method (#24105)</li>
<li>Remove explicit <code>IDE1005</code> suppressions (#21217) (Thanks @xtqqczze!)</li>
<li>Fix a typo in <code>WebRequestSession.cs</code> (#23963) (Thanks @eltociear!)</li>
</ul>

</details>

* Tools

- devcontainers: mount workspace in /PowerShell (#23857) (Thanks @rzippo!)

* Tests

- Add debugging to the MTU size test (#21463)

* Build and Packaging Improvements

<details>

<summary>

<p>We thank the following contributors!</p>
<p>@bosesubham2011</p>

</summary>

<ul>
<li>Update third party notices (Internal 32128)</li>
<li>Update cgmanifest (#24163)</li>
<li>Fixes to Azure Public feed usage (#24149)</li>
<li>Add support for back porting PRs from GitHub or the Private Azure Repos (#20670)</li>
<li>Move to <code>9.0.0-preview.6.24327.7</code> (#24133)</li>
<li>update path (#24134)</li>
<li>Update to the latest NOTICES file (#24131)</li>
<li>Fix semver issue with updating cgmanifest (#24132)</li>
<li>Add ability to capture MSBuild Binary logs when restore fails (#24128)</li>
<li>add ability to skip windows stage (#24116)</li>
<li>chore: Refactor Nuget package source creation to use New-NugetPackageSource function (#24104)</li>
<li>Make Microsoft feeds the default (#24098)</li>
<li>Cleanup unused csproj (#23951)</li>
<li>Add script to update SDK version during release (#24034)</li>
<li>Enumerate over all signed zip packages (#24063)</li>
<li>Update metadata.json for PowerShell July releases (#24082)</li>
<li>Add macos signing for package files (#24015)</li>
<li>Update <code>install-powershell.sh</code> to support azure-linux (#23955) (Thanks @bosesubham2011!)</li>
<li>Skip build steps that do not have exe packages (#23945)</li>
<li>Update metadata.json for PowerShell June releases (#23973)</li>
<li>Create <code>powershell.config.json</code> for <code>PowerShell.Windows.x64</code> global tool (#23941)</li>
<li>Fix error in the vPack release, debug script that blocked release (#23904)</li>
<li>Add vPack release (#23898)</li>
<li>Fix exe signing with third party signing for WiX engine (#23878)</li>
<li>Update wix installation in CI (#23870)</li>
<li>Add checkout to fix TSA config paths (#23865)</li>
<li>Merge the <code>v7.5.0-preview.3</code> release branch to GitHub master branch</li>
<li>Update <code>metadata.json</code> for the <code>v7.5.0-preview.3</code> release (#23862)</li>
<li>Bump <code>PSResourceGet</code> to <code>1.1.0-preview1</code> (#24129)</li>
<li>Bump <code>github/codeql-action</code> from 3.25.8 to 3.26.0 (#23953) (#23999) (#24053) (#24069) (#24095) (#24118)</li>
<li>Bump <code>actions/upload-artifact</code> from 4.3.3 to 4.3.6 (#24019) (#24113) (#24119)</li>
<li>Bump <code>agrc/create-reminder-action</code> from 1.1.13 to 1.1.15 (#24029) (#24043)</li>
<li>Bump <code>agrc/reminder-action</code> from 1.0.12 to 1.0.14 (#24028) (#24042)</li>
<li>Bump <code>super-linter/super-linter</code> from 5.7.2 to 6.8.0 (#23809) (#23856) (#23894) (#24030) (#24103)</li>
<li>Bump <code>ossf/scorecard-action</code> from 2.3.1 to 2.4.0 (#23802) (#24096)</li>
<li>Bump <code>actions/dependency-review-action</code> from 4.3.2 to 4.3.4 (#23897) (#24046)</li>
<li>Bump <code>actions/checkout</code> from 4.1.5 to 4.1.7 (#23813) (#23947)</li>
<li>Bump <code>github/codeql-action</code> from 3.25.4 to 3.25.8 (#23801) (#23893)</li>
</ul>

</details>

* Documentation and Help Content

- Update docs sample nuget.config (#24109)
- Update Code of Conduct and Security Policy (#23811)
- Update working-group-definitions.md for the Security WG (#23884)
- Fix up broken links in Markdown files (#23863)
- Update Engine Working Group Members (#23803) (Thanks @kilasuit!)
- Remove outdated and contradictory information from `README` (#23812)

[7.5.0-preview.4]: v7.5.0-preview.3...v7.5.0-preview.4

v7.4.5

Toggle v7.4.5's commit message
[7.4.5] - 2024-08-20

* General Cmdlet Updates and Fixes

- Fix WebCmdlets when `-Body` is specified but `ContentType` is not (#24145)

* Tests

- Rewrite the mac syslog tests to make them less flaky (#24152)

* Build and Packaging Improvements

<details>

<summary>

<p>Bump .NET SDK to 8.0.400</p>

</summary>

<ul>
<li>Add feature flags for removing network isolation (Internal 32126)</li>
<li>Update <code>ThirdPartyNotices.txt</code> for v7.4.5 (#24160)</li>
<li>Update <code>cgmanifest.json</code> for v7.4.5 (#24159)</li>
<li>Update .NET SDK to 8.0.400 (#24151)</li>
<li>Cleanup unused csproj (#24146)</li>
<li>Remember installation options and used them to initialize options for the next installation (#24143)</li>
<li>Fix failures in GitHub action <code>markdown-link-check</code> (#24142)</li>
<li>Use correct signing certificates for RPM and DEBs (#21522)</li>
</ul>

</details>

* Documentation and Help Content

- Update docs sample nuget.config (#24147)
- Fix up broken links in Markdown files (#24144)

[7.4.5]: v7.4.4...v7.4.5

v7.4.4

Toggle v7.4.4's commit message
[7.4.4] - 2024-07-23

*** Engine Updates and Fixes

- Resolve paths correctly when importing files or files referenced in the module manifest (Internal 31780)

*** Build and Packaging Improvements

<details>

<summary>

<p>Bump .NET to 8.0.303</p>

</summary>

<ul>
<li>Enumerate over all signed zip packages in macos signing</li>
<li>Update TPN for the v7.4.4 release (Internal 31793)</li>
<li>Add update cgmanifest (Internal 31789)</li>
<li>Add macos signing for package files (#24015) (#24059)</li>
<li>Update .NET SDK to 8.0.303 (#24038)</li>
</ul>

</details>

[7.4.4]: v7.4.3...v7.4.4

v7.2.22

Toggle v7.2.22's commit message
[7.2.22] - 2024-07-23

*** Engine Updates and Fixes

- Resolve paths correctly when importing files or files referenced in the module manifest (Internal 31777 31788)

*** Build and Packaging Improvements

<details>

<summary>

<p>Bump .NET to 6.0.424</p>

</summary>

<ul>
<li>Enumerate over all signed zip packages</li>
<li>Update TPN for release v7.2.22 (Internal 31807)</li>
<li>Update CG Manifest for 7.2.22 (Internal 31804)</li>
<li>Add macos signing for package files (#24015) (#24058)</li>
<li>Update .NET version to 6.0.424 (#24033)</li>
</ul>

</details>

[7.2.22]: v7.2.21...v7.2.22

v7.4.3

Toggle v7.4.3's commit message
[7.4.3] - 2024-06-18

*** General Cmdlet Updates and Fixes

- Fix the error when using `Start-Process -Credential` without the admin privilege (#21393) (Thanks @jborean93!)
- Fix `Test-Path -IsValid` to check for invalid path and filename characters (#21358)

*** Engine Updates and Fixes

- Fix generating `OutputType` when running in Constrained Language Mode (#21605)
- Expand `~` to `$home` on Windows with tab completion (#21529)
- Make sure both stdout and stderr can be redirected from a native executable (#20997)

*** Build and Packaging Improvements

<details>

<summary>

<p>Update to .NET 8.0.6</p>
<p>We thank the following contributors!</p>
<p>@ForNeVeR!</p>

</summary>

<ul>
<li>Fixes for change to new Engineering System.</li>
<li>Fix argument passing in <code>GlobalToolShim</code> (#21333) (Thanks @ForNeVeR!)</li>
<li>Create <code>powershell.config.json</code> for <code>PowerShell.Windows.x64</code> global tool (#23941)</li>
<li>Remove markdown link check on release branches (#23937)</li>
<li>Update to .NET 8.0.6 (#23936)</li>
<li>Fix error in the vPack release, debug script that blocked release (#23904)</li>
<li>Add branch counter variables for daily package builds (#21523)</li>
<li>Updates to package and release pipelines (#23800)</li>
<li>Fix exe signing with third party signing for WiX engine (#23878)</li>
<li>Use PSScriptRoot to find path to Wix module (#21611)</li>
<li>[StepSecurity] Apply security best practices (#21480)</li>
<li>Fix build failure due to missing reference in <code>GlobalToolShim.cs</code> (#21388)</li>
<li>Update installation on Wix module (#23808)</li>
<li>Use feed with Microsoft Wix toolset (#21651)</li>
<li>Create the Windows.x64 global tool with shim for signing (#21559)</li>
<li>Generate MSI for <code>win-arm64</code> installer (#20516)</li>
<li>update wix package install (#21537)</li>
<li>Add a PAT for fetching PMC cli (#21503)</li>
<li>Official PowerShell Package pipeline (#21504)</li>
</ul>

</details>

[7.4.3]: v7.4.2...v7.4.3

v7.2.21

Toggle v7.2.21's commit message
[7.2.21] - 2024-06-18

*** Build and Packaging Improvements

<details>

<summary>

<p>Release 7.2.20 broadly (was previously just released to the .NET SDK containers.)</p><p>Release 7.2.20 broadly</p>

</summary>

<ul>
<li>Fixes for change to new Engineering System.</li>
<li>Create <code>powershell.config.json</code> for <code>PowerShell.Windows.x64</code> global tool (#23941) (#23942)</li>
</ul>

</details>

v7.2.20

Toggle v7.2.20's commit message
Limited release for dotnet SDK container images

v7.5.0-preview.3

Toggle v7.5.0-preview.3's commit message
[7.5.0-preview.3] - 2024-05-16

* Breaking Changes

- Remember installation options and used them to initialize options for the next installation (#20420) (Thanks @reduckted!)
- `ConvertTo-Json`: Serialize `BigInteger` as a number (#21000) (Thanks @jborean93!)

* Engine Updates and Fixes

- Fix generating `OutputType` when running in Constrained Language Mode (#21605)
- Revert the PR #17856 (Do not preserve temporary results when no need to do so) (#21368)
- Make sure the assembly/library resolvers are registered at early stage (#21361)
- Fix PowerShell class to support deriving from an abstract class with abstract properties (#21331)
- Fix error formatting for pipeline enumeration exceptions (#20211)

* General Cmdlet Updates and Fixes

- Added progress bar for `Remove-Item` cmdlet (#20778) (Thanks @ArmaanMcleod!)
- Expand `~` to `$home` on Windows with tab completion (#21529)
- Separate DSC configuration parser check for ARM processor (#21395) (Thanks @dkontyko!)
- Fix `[semver]` type to pass `semver.org` tests (#21401)
- Don't complete when declaring parameter name and class member (#21182) (Thanks @MartinGC94!)
- Add `RecommendedAction` to `ConciseView` of the error reporting (#20826) (Thanks @JustinGrote!)
- Fix the error when using `Start-Process -Credential` without the admin privilege (#21393) (Thanks @jborean93!)
- Fix `Test-Path -IsValid` to check for invalid path and filename characters (#21358)
- Fix build failure due to missing reference in `GlobalToolShim.cs` (#21388)
- Fix argument passing in `GlobalToolShim` (#21333) (Thanks @ForNeVeR!)
- Make sure both stdout and stderr can be redirected from a native executable (#20997)
- Handle the case that `Runspace.DefaultRunspace == null` when logging for WDAC Audit (#21344)
- Fix a typo in `releaseTools.psm1` (#21306) (Thanks @eltociear!)
- `Get-Process`: Remove admin requirement for `-IncludeUserName` (#21302) (Thanks @jborean93!)
- Fall back to type inference when hashtable key-value cannot be retrieved from safe expression (#21184) (Thanks @MartinGC94!)
- Fix the regression when doing type inference for `$_` (#21223) (Thanks @MartinGC94!)
- Revert "Adjust PUT method behavior to POST one for default content type in WebCmdlets" (#21049)
- Fix a regression in `Format-Table` when header label is empty (#21156)

* Code Cleanup

<details>

<summary>

<p>We thank the following contributors!</p>
<p>@xtqqczze</p>

</summary>

<ul>
<li>Enable <code>CA1868</code>: Unnecessary call to 'Contains' for sets (#21165) (Thanks @xtqqczze!)</li>
<li>Remove <code>JetBrains.Annotations</code> attributes (#21246) (Thanks @xtqqczze!)</li>
</ul>

</details>

* Tests

- Update `metadata.json` and `README.md` (#21454)
- Skip test on Windows Server 2012 R2 for `no-nl` (#21265)

* Build and Packaging Improvements

<details>

<summary>

<p>Bump to .NET 9.0.0-preview.3</p>
<p>We thank the following contributors!</p>
<p>@alerickson, @tgauth, @step-security-bot, @xtqqczze</p>

</summary>

<ul>
<li>Fix PMC publish and the file path for msixbundle</li>
<li>Fix release version and stage issues in build and packaging</li>
<li>Add release tag if the environment variable is set</li>
<li>Update installation on Wix module (#23808)</li>
<li>Updates to package and release pipelines (#23800)</li>
<li>Update <code>PSResourceGet</code> to 1.0.5 (#23796)</li>
<li>Bump <code>actions/upload-artifact</code> from 4.3.2 to 4.3.3 (#21520)</li>
<li>Bump <code>actions/dependency-review-action</code> from 4.2.5 to 4.3.2 (#21560)</li>
<li>Bump <code>actions/checkout</code> from 4.1.2 to 4.1.5 (#21613)</li>
<li>Bump <code>github/codeql-action</code> from 3.25.1 to 3.25.4 (#22071)</li>
<li>Use feed with Microsoft Wix toolset (#21651) (Thanks @tgauth!)</li>
<li>Bump to .NET 9 preview 3 (#21782)</li>
<li>Use <code>PSScriptRoot</code> to find path to Wix module (#21611)</li>
<li>Create the <code>Windows.x64</code> global tool with shim for signing (#21559)</li>
<li>Update Wix package install (#21537) (Thanks @tgauth!)</li>
<li>Add branch counter variables for daily package builds (#21523)</li>
<li>Use correct signing certificates for RPM and DEBs (#21522)</li>
<li>Revert to version available on <code>Nuget</code> for <code>Microsoft.CodeAnalysis.Analyzers</code> (#21515)</li>
<li>Official PowerShell Package pipeline (#21504)</li>
<li>Add a PAT for fetching PMC cli (#21503)</li>
<li>Bump <code>ossf/scorecard-action</code> from 2.0.6 to 2.3.1 (#21485)</li>
<li>Apply security best practices (#21480) (Thanks @step-security-bot!)</li>
<li>Bump <code>Microsoft.CodeAnalysis.Analyzers</code> (#21449)</li>
<li>Fix package build to not check some files for a signature. (#21458)</li>
<li>Update PSResourceGet version from 1.0.2 to 1.0.4.1 (#21439) (Thanks @alerickson!)</li>
<li>Verify environment variable for OneBranch before we try to copy (#21441)</li>
<li>Add back two transitive dependency packages (#21415)</li>
<li>Multiple fixes in official build pipeline (#21408)</li>
<li>Update <code>PSReadLine</code> to <code>v2.3.5</code> (#21414)</li>
<li>PowerShell co-ordinated build OneBranch pipeline (#21364)</li>
<li>Add file description to <code>pwsh.exe</code> (#21352)</li>
<li>Suppress MacOS package manager output (#21244) (Thanks @xtqqczze!)</li>
<li>Update <code>metadata.json</code> and <code>README.md</code> (#21264)</li>
</ul>

</details>

* Documentation and Help Content

- Update the doc about how to build PowerShell (#21334) (Thanks @ForNeVeR!)
- Update the member lists for the Engine and Interactive-UX working groups (#20991) (Thanks @kilasuit!)
- Update CHANGELOG for `v7.2.19`, `v7.3.12` and `v7.4.2` (#21462)
- Fix grammar in `FAQ.md` (#21468) (Thanks @CodingGod987!)
- Fix typo in `SessionStateCmdletAPIs.cs` (#21413) (Thanks @eltociear!)
- Fix typo in a test (#21337) (Thanks @testwill!)
- Fix typo in `ast.cs` (#21350) (Thanks @eltociear!)
- Adding Working Group membership template (#21153)

[7.5.0-preview.3]: v7.5.0-preview.2...v7.5.0-preview.3

v7.4.2

Toggle v7.4.2's commit message
* [7.4.2] - 2024-04-11

* General Cmdlet Updates and Fixes

- Revert "Adjust PUT method behavior to POST one for default content type in WebCmdlets" (#21049)
- Fix regression with `Get-Content` when `-Tail 0` and `-Wait` are both used (#20734) (Thanks @CarloToso!)
- Fix `Get-Error` serialization of array values (#21085) (Thanks @jborean93!)
- Fix a regression in `Format-Table` when header label is empty (#21156)

* Engine Updates and Fixes

- Revert the PR #17856 (Do not preserve temporary results when no need to do so) (#21368)
- Make sure the assembly/library resolvers are registered at early stage (#21361)
- Handle the case that `Runspace.DefaultRunspace` is `null` when logging for WDAC Audit (#21344)
- Fix PowerShell class to support deriving from an abstract class with abstract properties (#21331)
- Fix the regression when doing type inference for `$_` (#21223) (Thanks @MartinGC94!)

* Build and Packaging Improvements

<details>

<summary>

<p>Bump to .NET 8.0.4</p>

</summary>

<ul>
<li>Revert analyzer package back to stable</li>
<li>Update SDK, deps and <code>cgmanifest</code> for <code>7.4.2</code></li>
<li>Revert changes to <code>packaging.psm1</code></li>
<li>Update <code>PSResourceGet</code> version from <code>1.0.2</code> to <code>1.0.4.1</code> (#21439)</li>
<li>Verify environment variable for OneBranch before we try to copy (#21441)</li>
<li>Remove <code>surrogateFile</code> setting of <code>APIScan</code> (#21238)</li>
<li>Add <code>dotenv</code> install as latest version does not work with current Ruby version (#21239)</li>
<li>Multiple fixes in official build pipeline (#21408)</li>
<li>Add back 2 transitive dependency packages (#21415)</li>
<li>Update <code>PSReadLine</code> to <code>v2.3.5</code> for the next <code>v7.4.x</code> servicing release (#21414)</li>
<li>PowerShell co-ordinated build OneBranch pipeline (#21364)</li>
</ul>

</details>

[7.4.2]: v7.4.1...v7.4.2