PowerShell v6.0.0-beta.5 Release Notes
Release Date: 2017-08-02 // almost 7 years ago-
π₯ Breaking changes
- β Remove the
*-Counter
cmdlets inMicrosoft.PowerShell.Diagnostics
due to the use of unsupported APIs until a better solution is found. (#4303) - β Remove the
Microsoft.PowerShell.LocalAccounts
due to the use of unsupported APIs until a better solution is found. (#4302)
β‘οΈ Engine updates and fixes
- π Fix the issue where PowerShell Core wasn't working on Windows 7 or Windows Server 2008 R2/2012 (non-R2). (#4463)
- π
ValidateSetAttribute
enhancement: support set values to be dynamically generated from a customValidateSetValueGenerator
. (#3784) (Thanks to @iSazonov!) - Disable breaking into debugger on Ctrl+Break when running non-interactively. (#4283) (Thanks to @mwrock!)
- Give error instead of crashing if WSMan client library is not available. (#4387)
- π Allow passing
$true
/$false
as a parameter to scripts usingpowershell.exe -File
. (#4178) - Enable
DataRow
/DataRowView
adapters in PowerShell Core to fix an issue withDataTable
usage. (#4258) - π Fix an issue where PowerShell class static methods were being shared across
Runspace
s/SessionState
s. (#4209) - π Fix array expression to not return null or throw error. (#4296)
- π Fixes a CIM deserialization bug where corrupted CIM classes were instantiating non-CIM types. (#4234)
- π Improve error message when
HelpMessage
property ofParameterAttribute
is set to empty string. (#4334) - π Make
ShellExecuteEx
run in a STA thread. (#4362)
β‘οΈ General cmdlet updates and fixes
- β Add
-SkipHeaderValidation
switch toInvoke-WebRequest
andInvoke-RestMethod
to support adding headers without validating the header value. (#4085) - β Add support for
Invoke-Item -Path <folder>
. (#4262) - π Fix
ConvertTo-Html
output when using a single column header. (#4276) - π Fix output of
Length
forFileInfo
when usingFormat-List
. (#4437) - π Fix an issue in implicit remoting where restricted sessions couldn't use
Get-FormatData οΏ½PowerShellVersion
. (#4222) - π Fix an issue where
Register-PSSessionConfiguration
fails ifSessionConfig
folder doesn't exist. (#4271)
β‘οΈ Installer updates
- π Create script to install latest PowerShell from Microsoft package repositories (or Homebrew) on non-Windows platforms. (#3608) (Thanks to @DarwinJS!)
- β¬οΈ Enable MSI upgrades rather than a side-by-side install. (#4259)
- β Add a checkbox to open PowerShell after the Windows MSI installer has finished. (#4203) (Thanks to @bergmeister!)
- β Add Amazon Linux compatibility to
install-powershell.sh
. (#4360) (Thanks to @DarwinJS!) - β Add ability to package PowerShell Core as a NuGet package. (#4363)
π Build/test and code cleanup
- β Add build check for MFC for Visual C++ during Windows builds. This fixes a long-standing (and very frustrating!) issue with missing build dependencies! (#4185) (Thanks to @KirkMunro!)
- π Move building Windows PSRP binary out of
Start-PSBuild
. NowStart-PSBuild
doesn't build PSRP binary on windows. Instead, we consume the PSRP binary from a NuGet package. (#4335) - β Add tests for built-in type accelerators. (#4230) (Thanks to @dchristian3188!)
- Increase code coverage of
Get-ChildItem
on file system. (#4342) (Thanks to @jeffbi!) - π Increase test coverage for
Rename-Item
andMove-Item
. (#4329) (Thanks to @jeffbi!) - β Add test coverage for Registry provider. (#4354) (Thanks to @jeffbi!)
- π Fix warnings and errors thrown by PSScriptAnalyzer. (#4261) (Thanks to @bergmeister!)
- π Fix regressions that cause implicit remoting tests to fail. (#4326)
- π Disable legacy UTC and SQM Windows telemetry by enclosing the code in '#if LEGACYTELEMETRY'. (#4190)
Cleanup
#if CORECLR
codePowerShell 6.0 will be exclusively built on top of CoreCLR, so we are removing a large amount of code that's built only for FullCLR. π To read more about this, check out this blog post.
- β Remove the