PowerShell v7.0.0-preview.6 Release Notes

Release Date: 2019-11-21 // over 4 years ago
  • v7.0.0-preview.6 - 11/21/2019

    Note: The CentOS 8 deb package is experimental for this release. A Docker image and deb package will be available, but the deb package will not be released to packages.microsoft.com. For more information please see: #11147

    ๐Ÿ’ฅ Breaking Changes

    • โšก๏ธ Update Test-Connection to work more like the one in Windows PowerShell (#10697) (Thanks @vexx32!)
    • Preserve $? for ParenExpression, SubExpression and ArrayExpression (#11040)
    • ๐Ÿ‘ท Set working directory to current directory in Start-Job (#10920) (Thanks @iSazonov!)

    โšก๏ธ Engine Updates and Fixes

    • ๐Ÿ‘ Allow pwsh to inherit $env:PSModulePath and enable powershell.exe to start correctly (#11057)

    Experimental Features

    • Provide Unix stat information in filesystem output (#11042)
    • ๐Ÿ‘Œ Support null-conditional operators ?. and ?[] in PowerShell language (#10960)
    • ๐Ÿ‘Œ Support using non-compatible Windows PowerShell modules in PowerShell Core (#10973)

    ๐ŸŽ Performance

    • ๐Ÿ“œ Avoid using closure in Parser.SaveError (#11006)
    • ๐Ÿ‘Œ Improve the caching when creating new Regex instances (#10657) (Thanks @iSazonov!)
    • ๐Ÿ‘Œ Improve processing of the PowerShell built-in type data from types.ps1xml, typesV3.ps1xml and GetEvent.types.ps1xml (#10898)
    • โšก๏ธ Update PSConfiguration.ReadValueFromFile to make it faster and more memory efficient (#10839)

    โšก๏ธ General Cmdlet Updates and Fixes

    • โž• Add limit check in Get-WinEvent (#10648) (Thanks @iSazonov!)
    • ๐Ÿ›  Fix command runtime so StopUpstreamCommandsException doesn't get populated in -ErrorVariable (#10840)
    • Set the output encoding to [Console]::OutputEncoding for native commands (#10824)
    • ๐Ÿ‘Œ Support multi-line code blocks in examples (#10776) (Thanks @Greg-Smulko!)
    • โž• Add Culture parameter to Select-String cmdlet (#10943) (Thanks @iSazonov!)
    • ๐Ÿ›  Fix Start-Job working directory path with trailing backslash (#11041)
    • 0๏ธโƒฃ ConvertFrom-Json: Unwrap collections by default (#10861) (Thanks @danstur!)
    • ๐Ÿ‘‰ Use case-sensitive Hashtable for Group-Object cmdlet with -CaseSensitive and -AsHashtable switches (#11030) (Thanks @vexx32!)
    • ๐Ÿ‘ป Handle exception if enumerating files fails when rebuilding path to have correct casing (#11014)
    • ๐Ÿ›  Fix ConciseView to show Activity instead of myCommand (#11007)
    • ๐Ÿ‘ Allow web cmdlets to ignore HTTP error statuses (#10466) (Thanks @vdamewood!)
    • ๐Ÿ›  Fix piping of more than one CommandInfo to Get-Command (#10929)
    • โž• Add back Get-Counter cmdlet for Windows (#10933)
    • ๐Ÿ‘‰ Make ConvertTo-Json treat [AutomationNull]::Value and [NullString]::Value as $null (#10957)
    • โœ‚ Remove brackets from ipv6 address for SSH remoting (#10968)
    • ๐Ÿ›  Fix crash if command sent to pwsh is just whitespace (#10977)
    • โž• Added cross-platform Get-Clipboard and Set-Clipboard (#10340)
    • ๐Ÿ›  Fix setting original path of filesystem object to not have extra trailing slash (#10959)
    • ๐Ÿ‘Œ Support $null for ConvertTo-Json (#10947)
    • โž• Add back Out-Printer command on Windows (#10906)
    • ๐Ÿ›  Fix Start-Job -WorkingDirectory with whitespace (#10951)
    • 0๏ธโƒฃ Return default value when getting null for a setting in PSConfiguration.cs (#10963) (Thanks @iSazonov!)
    • ๐Ÿ‘ป Handle IO exception as non-terminating (#10950)
    • โž• Add GraphicalHost assembly to enable Out-GridView, Show-Command, and Get-Help -ShowWindow (#10899)
    • ๐Ÿš‘ Take ComputerName via pipeline in Get-HotFix (#10852) (Thanks @kvprasoon!)
    • ๐Ÿ›  Fix tab completion for parameters so that it shows common parameters as available (#10850)
    • ๐Ÿ›  Fix GetCorrectCasedPath() to first check if any system file entries is returned before calling First() (#10930)
    • ๐Ÿ‘ท Set working directory to current directory in Start-Job (#10920) (Thanks @iSazonov!)
    • ๐Ÿ”„ Change TabExpansion2 to not require -CursorColumn and treat as $InputScript.Length (#10849)
    • ๐Ÿ– Handle case where Host may not return Rows or Columns of screen (#10938)
    • ๐Ÿ›  Fix use of accent colors for hosts that don't support them (#10937)
    • โž• Add back Update-List command (#10922)
    • โšก๏ธ Update FWLink Id for Clear-RecycleBin (#10925)
    • During tab completion, skip file if can't read file attributes (#10910)
    • โž• Add back Clear-RecycleBin for Windows (#10909)
    • โž• Add $env:__SuppressAnsiEscapeSequences to control whether to have VT escape sequence in output (#10814)

    Code Cleanup

    • ๐Ÿ’… Cleanup style issues in Compiler.cs (#10368) (Thanks @iSazonov!)
    • โœ‚ Remove the unused type converter for CommaDelimitedStringCollection (#11000) (Thanks @iSazonov!)
    • ๐Ÿ’… Cleanup style in InitialSessionState.cs (#10865) (Thanks @iSazonov!)
    • Code clean up for PSSession class (#11001)
    • โœ‚ Remove the not-working 'run Update-Help from Get-Help when Get-Help runs for the first time' feature (#10974)
    • ๐Ÿ›  Fix style issues (#10998) (Thanks @iSazonov!)
    • Cleanup: use the built-in type alias (#10882) (Thanks @iSazonov!)
    • โœ‚ Remove the unused setting key ConsolePrompting and avoid unnecessary string creation when querying ExecutionPolicy setting (#10985)
    • โšก๏ธ Disable update notification check for daily builds (#10903) (Thanks @bergmeister!)
    • Reinstate debugging API lost in #10338 (#10808)

    Tools

    • โž• Add default setting for the SDKToUse property so that it builds in VS (#11085)
    • Install-Powershell.ps1: Add parameter to use MSI installation (#10921) (Thanks @MJECloud!)
    • โž• Add basic examples for install-powershell.ps1 (#10914) (Thanks @kilasuit!)

    โœ… Tests

    • ๐Ÿ›  Fix stringdata test to correctly validate keys of hashtables (#10810)
    • โœ… Unload test modules (#11061) (Thanks @iSazonov!)
    • โœ… Increase time between retries of testing URL (#11015)
    • โšก๏ธ Update tests to accurately describe test actions. (#10928) (Thanks @romero126!)

    ๐Ÿ— Build and Packaging Improvements

    • ๐Ÿ“‡ Updating links in README.md and metadata.json for Preview.5 (#10854)
    • โœ… Select the files for compliance tests which are owned by PowerShell (#10837)
    • ๐Ÿ‘ Allow win7x86 msix package to build. (Internal 10515)
    • ๐Ÿ‘ Allow semantic versions to be passed to NormalizeVersion function (#11087)
    • โฌ†๏ธ Bump .NET core framework to 3.1-preview.3 (#11079)
    • โฌ†๏ธ Bump PSReadLine from 2.0.0-beta5 to 2.0.0-beta6 in /src/Modules (#11078)
    • โฌ†๏ธ Bump Newtonsoft.Json from 12.0.2 to 12.0.3 (#11037) (#11038)
    • โž• Add Debian 10, 11 and CentOS 8 packages (#11028)
    • ๐Ÿš€ Upload Build-Info Json file with the ReleaseDate field (#10986)
    • โฌ†๏ธ Bump .NET core framework to 3.1-preview.2 (#10993)
    • ๐Ÿ— Enable build of x86 MSIX package (#10934)
    • โšก๏ธ Update the dotnet SDK install script URL in build.psm1 (#10927)
    • โฌ†๏ธ Bump Markdig.Signed from 0.17.1 to 0.18.0 (#10887)
    • โฌ†๏ธ Bump ThreadJob from 2.0.1 to 2.0.2 (#10886)
    • โšก๏ธ Update AppX Manifest and Packaging module to conform to MS Store requirements (#10878)

    ๐Ÿ“š Documentation and Help Content

    • โšก๏ธ Update CONTRIBUTING.md (#11096) (Thanks @mklement0!)
    • ๐Ÿ›  Fix installation doc links in README.md (#11083)
    • โž• Adds examples to install-powershell.ps1 script (#11024) (Thanks @kilasuit!)
    • ๐Ÿ›  Fix to Select-String emphasis and Import-DscResource in CHANGELOG.md (#10890)
    • โœ‚ Remove the stale link from powershell-beginners-guide.md (#10926)

    ๐Ÿš€ SHA256 Hashes of the release artifacts

    • ๐Ÿง powershell-7.0.0-preview.6-linux-alpine-x64.tar.gz
      • D2A2EA5F381BDB4D61C2B44E998B23A0429C344CE7C846D85416CCD3BC9EC96F
    • ๐Ÿง powershell-7.0.0-preview.6-linux-arm32.tar.gz
      • 2371E4AABCBA06B1EFD3B1F0918B1CA1C8E9F1FF4707F67B44A222FD497F2CBD
    • ๐Ÿง powershell-7.0.0-preview.6-linux-arm64.tar.gz
      • 297624AD47E1293A89471E58EF75DD4462FCDE096C162F0068ADFCE6805EF364
    • ๐Ÿง powershell-7.0.0-preview.6-linux-x64.tar.gz
      • 9726F2177F61BDE83FC2D1F8F346B9C80F65B83157E5682D12DB7490ABB476DC
    • ๐Ÿง powershell-7.0.0-preview.6-linux-x64-fxdependent.tar.gz
      • 62835E90E8BAF5B1646171552BC4BA8669CDB5AD1F533BCD932B5A785B76C9DF
    • powershell-7.0.0-preview.6-osx-x64.pkg
      • 37EA862FA8919167C5A9D43664EE71AF6250BEFEECD2D38239999C6CE1C36785
    • powershell-7.0.0-preview.6-osx-x64.tar.gz
      • 6C66FECA9435B5874B84649198520D30F382A50D3EC033CFCAA7AABE7712C007
    • PowerShell-7.0.0-preview.6-win-arm32.msix
      • 335AF7A718F57E44BDD33BFC6983069A9F2F65921CAB01AF4B7E90B6964787A4
    • PowerShell-7.0.0-preview.6-win-arm32.zip
      • 548D10335AD3B3D326C75875A2D10C0963D1C425A314598FE1C7352547DE08A7
    • PowerShell-7.0.0-preview.6-win-arm64.msix
      • 483DA7FCD3E6583966CFE94120154BCAA682B27E43B280AB4DDE48671D18569B
    • PowerShell-7.0.0-preview.6-win-arm64.zip
      • 6F889A005B0ECB3FE6C5AF014F0C622BEBA8811C6D5D77AA4372C283D6305805
    • PowerShell-7.0.0-preview.6-win-fxdependent.zip
      • FA18474209581E9093D019987CC82A27A3781496ACB33355AE5CDE30766D97A9
    • PowerShell-7.0.0-preview.6-win-fxdependentWinDesktop.zip
      • D0C5150147CDC754C9F2D292ECE8D0C96E389D70AB539D62083E15A59EC2806B
    • PowerShell-7.0.0-preview.6-win-x64.msi
      • 67EA17E4FC55589C5FF34FC869DD18B9BC842CB886379100EF16F4795F35198E
    • PowerShell-7.0.0-preview.6-win-x64.msix
      • AEB5DEA778A1FA6A17CEAC1EF6339ACDB22AA4EF901A0F16911C2BB8EDD0C83B
    • PowerShell-7.0.0-preview.6-win-x64.zip
      • CDDA77C0F8BBED57249B0ABC6E31DB87BA302FAD0CB76FAA4AD77AAB74E95811
    • PowerShell-7.0.0-preview.6-win-x86.msi
      • A96119B6DB4C65758501E09CCDFA44B2CB8354456F754C53440021B7A0C68743
    • PowerShell-7.0.0-preview.6-win-x86.msix
      • 780E0CAC2A20AB92EE0A92660E5BBC27D9F178323E2F252BBAD9F64D89F4DE6E
    • PowerShell-7.0.0-preview.6-win-x86.zip
      • 9EBEDFBA967BF5F4C77672ABFC8EED0BEB11568E7A56B5D5F025CD9DF6D44F2A
    • powershell-preview_7.0.0-preview.6-1.debian.10_amd64.deb
      • A71B32D998CF03B0BEF39A6FF56FC1B033F9A73B649F849175B09ACFAE042CF6
    • powershell-preview_7.0.0-preview.6-1.debian.9_amd64.deb
      • 7EB47090FC79133F75E6503DC84236B7292080C1A6F48F78AFE10CD0C964D9C2
    • powershell-preview_7.0.0-preview.6-1.ubuntu.16.04_amd64.deb
      • 9BFB877A95B3838EFD7492036B707B2DB87F3148C24F2D2F29AF0DA36EDFA0E4
    • powershell-preview_7.0.0-preview.6-1.ubuntu.18.04_amd64.deb
      • D99F3198DBF8809E2CB30285E0B9FFF8BFF2362E8BA3B51A4C4FB6BD846EDA35
    • powershell-preview-7.0.0_preview.6-1.centos.8.x86_64.rpm
      • 64926F4F2D648785D11096813BF1D53A5F976843B58283D098B13411BEF59B5D
    • powershell-preview-7.0.0_preview.6-1.rhel.7.x86_64.rpm
      • 6CE031494564566490D937572FB4B7F42841E2A7B858F541CF2C2589D04820A4