PowerShell v7.0.0 Release Notes
Release Date: 2019-07-17 // almost 5 years ago-
v7.0.0-preview.2 - 07/17/2019
๐ฅ Breaking Changes
- ๐ Cleanup workflow - remove
PSProxyJob
(#10083) (Thanks @iSazonov!) - ๐ Disable
Enter-PSHostProcess
cmdlet when system in lock down mode (Internal 9168) - Consider
DBNull.Value
andNullString.Value
the same as$null
when comparing with$null
and casting to bool (#9794) (Thanks @vexx32!)
โก๏ธ Engine Updates and Fixes
- ๐ Allow methods to be named after keywords (#9812) (Thanks @vexx32!)
- Create
JumpList
inSTA
thread as someCOM
APIs
are strictlySTA
only to avoid sporadicCLR
crashes (#9928) (#10057) (Thanks @bergmeister!) - Skip
JumpList
onNanoServer
andIoT
(#10164) - Display
COM
method signature with argument names (#9858) (Thanks @nbkalex!) - ๐ Use the original precision (prior-dotnet-core-3) for double/float-to-string conversion (#9893)
Import-DscResource
should allow to overwrite DSC built-in resources. (#9879)- โ Add ability to pass
InitialSessionState
to theConsoleShell.Start
(#9802) (Thanks @asrosent!) - Have console host not enter command prompt mode when using
Read-Host -Prompt
(#9743) - ๐ Fix use of
Start-Process http://bing.com
(#9793) - ๐ Support negative numbers in
-split
operator (#8960) (Thanks @ece-jacob-scott!)
โก๏ธ General Cmdlet Updates and Fixes
- ๐ Support DSC compilation on Linux. (#9834)
- โ Add alias for Service
StartType
(#9940) (Thanks @NeoBeum!) - โ Add
-SecurityDescriptorSddl
parameter toSet-Service
(#8626) (Thanks @kvprasoon!) - ๐ Fix auto-download of files when enumerating files from a
OneDrive
folder (#9895) - ๐ Set request headers when request body is empty in Web Cmdlets (#10034) (Thanks @markekraus!)
- ๐ Fix wrong comparison in
CertificateProvider
(#9987) (Thanks @iSazonov!) - ๐ Sync docs changes into the embedded help for
pwsh
(#9952) - Display Duration when displaying
HistoryInfo
(#9751) (Thanks @rkeithhill!) - โก๏ธ Update console startup and help
url
for PowerShell docs (#9775) - ๐ Make
UseAbbreviationExpansion
andTempDrive
official features (#9872) - ๐ Fix
Get-ChildItem -Path
with wildcardchar
(#9257) (Thanks @kwkam!)
๐ Performance
- โ Add another fast path to
WildcardPattern.IsMatch
for patterns that only have an asterisk in the end (#10054) (Thanks @iSazonov!) - ๐ Move some of the creations of
WildcardPattern
in outer loop to avoid unnecessary allocation (#10053) (Thanks @iSazonov!) - ๐ Make
Foreach-Object
2 times faster by reducing unnecessary allocations and boxing (#10047) - ๐ Use a static cache for
PSVersionInfo.PSVersion
to avoid castingSemanticVersion
toVersion
every time accessing that property (#10028) - โฌ๏ธ Reduce allocations in
NavigationCmdletProvider.NormalizePath()
(#10038) (Thanks @iSazonov!) - โ Add fast path for wildcard patterns that contains no wildcard characters (#10020)
- Avoid
Assembly.GetName()
inClrFacade.GetAssemblies(string)
to reduce allocations ofCultureInfo
objects (#10024) (Thanks @iSazonov!) - Avoid the
int[]
andint[,]
allocation when tokenizing line comments and matching wildcard pattern (#10009)
Tools
- โก๏ธ Update change log generation tool to deal with private commits (#10096)
- โก๏ธ Update
Start-PSBuild -Clean
logic ofgit clean
to ignore locked files fromVS2019
(#10071) (Thanks @bergmeister!) - โ
Indent fix in
markdown-link.tests.ps1
(#10049) (Thanks @RDIL!) - ๐
Start-PSBuild -Clean
does not remove all untracked files (#10022) (Thanks @vexx32!) - โ Add module to support Pester tests for automating debugger commands (
stepInto
,stepOut
, etc.), along with basic tests (#9825) (Thanks @KirkMunro!) - โ Remove
markdownlint
tests due to security issues (#10163)
Code Cleanup
- Cleanup
CompiledScriptBlock.cs
(#9735) (Thanks @vexx32!) - Cleanup workflow code (#9638) (Thanks @iSazonov!)
- โก๏ธ Use
AddOrUpdate()
instead ofRemove
thenAdd
to register runspace (#10007) (Thanks @iSazonov!) - Suppress
PossibleIncorrectUsageOfAssignmentOperator
rule violation by adding extra parenthesis (#9460) (Thanks @xtqqczze!) - ๐ Use
AddRange
inGetModules()
(#9975) (Thanks @iSazonov!) - Code cleanup: use
IndexOf(char)
overload (#9722) (Thanks @iSazonov!) - ๐ Move
consts
and methods to singleCharExtensions
class (#9992) (Thanks @iSazonov!) - Cleanup: Use
EndsWith(char)
andStartsWith(char)
(#9994) (Thanks @iSazonov!) - โ Remove
LCIDToLocaleName
P/Invoke
fromGetComputerInfoCommand
(#9716) (Thanks @iSazonov!) - โ Cleanup Parser tests (#9792) (Thanks @vexx32!)
- โ Remove
EtwActivity
empty constructor and make minor style fixes (#9958) (Thanks @RDIL!) - ๐ Fix style issues from last commits (#9937) (Thanks @iSazonov!)
- โ Remove dead code about
IsTransparentProxy
(#9966) - ๐ Fix minor typos in code comments (#9917) (Thanks @RDIL!)
- ๐
Style fixes for
CimAsyncOperations
(#9945) (Thanks @RDIL!) - ๐ Fix minor
CodeFactor
style issues inModuleCmdletBase
(#9915) (Thanks @RDIL!) - Clean up the use of
SetProfileRoot
andStartProfile
in ConsoleHost (#9931) - ๐ Fix minor style issues come from last commits (#9640) (Thanks @iSazonov!)
- ๐ Improve whitespace for Parser tests (#9806) (Thanks @vexx32!)
- ๐ Use new
string.ConCat()
inProcess.cs
(#9720) (Thanks @iSazonov!) - Code Cleanup: Tidy up
scriptblock.cs
(#9732) (Thanks @vexx32!)
โ Tests
- โ
Mark
Set-Service
tests with password asPending
(#10146) - ๐ Fix test password generation rule to meet Windows complexity requirements (#10143)
- โ Add test for
New-Item -Force
(#9971) (Thanks @robdy!) - ๐ Fix gulp versions (#9916) (Thanks @RDIL!)
- ๐ Indentation fixes in
ci.psm1
(#9947) (Thanks @RDIL!) - โ Remove some
Travis-CI
references (#9919) (Thanks @RDIL!) - ๐ Improve release testing Docker images (#9942) (Thanks @RDIL!)
- ๐ Use
yarn
to install global tools (#9904) (Thanks @RDIL!) - ๐ Attempt to work around the zip download issue in Azure DevOps Windows CI (#9911)
- โก๏ธ Update PowerShell SDK version for hosting tests (Internal 9185)
๐ Build and Packaging Improvements
- โก๏ธ Update the target framework for reference assemblies to
netcoreapp3.0
(#9747) - ๐ Pin version of
netDumbster
to2.0.0.4
(#9748) - ๐ Fix daily
CodeCoverageAndTest
build by explicitly callingStart-PSBootStrap
(#9724) - ๐ Split the
fxdependent
package on Windows into two packages (#10134) - โฌ๏ธ Bump
System.Data.SqlClient
(#10109) - ๐ Bump
System.Security.AccessControl
(#10100) - โ Add performance tag to change log command (Internal)
- โฌ๏ธ Upgrade .Net Core 3 SDK from
preview5
topreview6
and related out of bandNuget
packages from2.1
to3.0-preview6
(#9888) (Thanks @bergmeister!) - โ Add to
/etc/shells
on macOS (#10066) - โฌ๏ธ Bump
Markdig.Signed
from0.17.0
to0.17.1
(#10062) - โก๏ธ Update copyright symbol for
NuGet
packages (#9936) - ๐ฆ Download latest version
(6.2.0)
ofPSDesiredStateConfiguration
nuget
package. (#9932) - โ Add automated
RPM
signing to release build (#10013) - โฌ๏ธ Bump
ThreadJob
from1.1.2
to2.0.1
in/src/Modules
(#10003) - โฌ๏ธ Bump
PowerShellGet
from2.1.4
to2.2
in /src/Modules (#9933) (#10085) - โฌ๏ธ Bump
PackageManagement
from1.4
to1.4.3
in/src/Modules
(#9820) (#9918) (#10084) - โก๏ธ Update to use
TSAv2
(#9914) - โฌ๏ธ Bump
NJsonSchema
from9.14.1
to10.0.21
(#9805) (#9843) (#9854) (#9862) (#9875) (#9885) (#9954) (#10017) - โฌ๏ธ Bump
System.Net.Http.WinHttpHandler
from4.5.3
to4.5.4
(#9786) - โฌ๏ธ Bump
Microsoft.ApplicationInsights
from2.9.1
to2.10.0
(#9757) - ๐ Increase timeout of NuGet job to workaround build timeout (#9772)
๐ Documentation and Help Content
- ๐ Change log
6.1.4
(#9759) - ๐ Change log for release
6.2.1
(#9760) - โ Add quick steps for adding docs to cmdlets (#9978)
- โก๏ธ Update readme
gitter
badge (#9920) (Thanks @RDIL!) - ๐ Update
README
andmetadata.json
for7.0.0-preview.1
release (#9767)
๐ SHA256 Hashes of the release artifacts
- ๐ง powershell-7.0.0-preview.2-linux-alpine-x64.tar.gz
- 52AAD50F74A51BB36F601C9A0B8D3C2E8B4C76D6B364CB42777C404363D30FBB
- ๐ง powershell-7.0.0-preview.2-linux-arm32.tar.gz
- DD3BF6F9D4092FD9C70120B26E83407CB18FCF6BB945F9D7E80A1CD29BD3131A
- ๐ง powershell-7.0.0-preview.2-linux-arm64.tar.gz
- 12B5CE3BA0FEF1C9820785623FD20798E4B6FCC8ABE5322DA4DD15E6B3C09A49
- ๐ง powershell-7.0.0-preview.2-linux-x64.tar.gz
- F12124BBD8C89754517F6C53D641059D5B24FA8964EEBE8D5063F6ED01D77700
- ๐ง powershell-7.0.0-preview.2-linux-x64-fxdependent.tar.gz
- 4F9B682698FAE8B4C3DC64BD19B433299D34DB6268B3E999345AAC0881C1FA4F
- powershell-7.0.0-preview.2-osx-x64.pkg
- B9CA20B7121EC8443A8E3AA1E61D431E1F49D803CCFC1AA17168C98BD8AA0F12
- powershell-7.0.0-preview.2-osx-x64.tar.gz
- 7412B7E9BAC04D6495A829A390E6E5B73B5EB77E5E40680AB0E4F39F448E6AC6
- PowerShell-7.0.0-preview.2-win-arm32.zip
- B374AD20AFE352AF65970599832B0C8535DCB7B3F33F4356C440896110FFA8E3
- PowerShell-7.0.0-preview.2-win-arm64.zip
- 0D521BBD88BAA7EF7EE31D5E8FC8078D1AE138B86F7F02FC02446859DE4160F8
- PowerShell-7.0.0-preview.2-win-fxdependent.zip
- 8BEF26FF757F4531C3FCBA7465CDF998B27635846B768998B038123AD646AC3C
- PowerShell-7.0.0-preview.2-win-fxdependentWinDesktop.zip
- 04C8D286D22644BF8F47BF325A788A4DC5B1805974DADE964D97FC30F0749F16
- PowerShell-7.0.0-preview.2-win-x64.msi
- 123135D14758E84D60BB759D0C16684963194EB3847B8C3964DBE3A9648D2255
- PowerShell-7.0.0-preview.2-win-x64.zip
- CE068509141A24E086C9CC72936899104341C5BB766FE10FD84FEC2390166D66
- PowerShell-7.0.0-preview.2-win-x86.msi
- B2C6ECE5EE5A79C99240150E38DBE9098566B4E8DF145981711AEEB690281A0F
- PowerShell-7.0.0-preview.2-win-x86.zip
- 794350403185BCE9CB31F6432F13E0BD3C74AC44A0095C0A35F2346B7E2370EF
- powershell-preview_7.0.0-preview.2-1.debian.9_amd64.deb
- 478F715BA860C2ADD10E3F4B842E1E27AF9F6D6BE65F160C08DD859C09484646
- powershell-preview_7.0.0-preview.2-1.ubuntu.16.04_amd64.deb
- 469464EA3292645DA65B078599A2EE2774B20EAC78036EDC0485B68792B8C5D4
- powershell-preview_7.0.0-preview.2-1.ubuntu.18.04_amd64.deb
- AF5C54559942CE2FBBC200AAAD221F00B3F9EA772F4D06E5AD2380A63F4C200E
- powershell-preview-7.0.0_preview.2-1.rhel.7.x86_64.rpm
- 94059118461045B7A43DEFE1C093A2FEEFC58F93958B4B68A9E7955C9692068B
- ๐ Cleanup workflow - remove