|
| 1 | +--- |
| 2 | +title: What's New in PowerShell 7.6 |
| 3 | +description: New features and changes released in PowerShell 7.6 |
| 4 | +ms.date: 01/17/2025 |
| 5 | +--- |
| 6 | + |
| 7 | +# What's New in PowerShell 7.6 |
| 8 | + |
| 9 | +PowerShell 7.6-preview.2 includes the following features, updates, and breaking changes. PowerShell |
| 10 | +7.6 is built on .NET 9.0.101 GA release. |
| 11 | + |
| 12 | +For a complete list of changes, see the [CHANGELOG][04] in the GitHub repository. |
| 13 | + |
| 14 | +## Breaking Changes |
| 15 | + |
| 16 | +No breaking changes were introduced in PowerShell 7.6-preview.2. |
| 17 | + |
| 18 | +## Updated modules |
| 19 | + |
| 20 | +PowerShell 7.6-preview.2 includes the following updated modules: |
| 21 | + |
| 22 | +- **Microsoft.PowerShell.PSResourceGet** v1.1.0-RC3 |
| 23 | +- **PSReadLine** v2.3.6 |
| 24 | + |
| 25 | +## Tab completion improvements |
| 26 | + |
| 27 | +- Update Named and Statement block type inference to not consider AssignmentStatements and |
| 28 | + Increment/decrement operators as part of their output ([#21137][21137]) (Thanks @MartinGC94!) |
| 29 | +- Add -PropertyType argument completer for New-ItemProperty ([#21117][21117]) (Thanks |
| 30 | + @ArmaanMcleod!) |
| 31 | + |
| 32 | +## Cmdlet improvements |
| 33 | + |
| 34 | +- Add -ExcludeModule parameter to Get-Command ([#18955][18955]) (Thanks @MartinGC94!) |
| 35 | +- Return correct FileName property for Get-Item when listing alternate data streams |
| 36 | + ([#18019][18019]) (Thanks @kilasuit!) |
| 37 | +- Fix Get-ItemProperty to report non-terminating error for cast exception ([#21115][21115]) (Thanks |
| 38 | + @ArmaanMcleod!) |
| 39 | +- Fix a bug in how Write-Host handles XmlNode object ([#24669][24669]) (Thanks @brendandburns!) |
| 40 | + |
| 41 | +## Engine improvements |
| 42 | + |
| 43 | +- Added the AIShell module to telemetry collection list ([#24747][24747]) |
| 44 | +- Added helper in EnumSingleTypeConverter to get enum names as array ([#17785][17785]) (Thanks |
| 45 | + @fflaten!) |
| 46 | +- Update DnsNameList for X509Certificate2 to use |
| 47 | + X509SubjectAlternativeNameExtension.EnumerateDnsNames Method ([#24714][24714]) (Thanks |
| 48 | + @ArmaanMcleod!) |
| 49 | +- Add completion of modules by their shortname ([#20330][20330]) (Thanks @MartinGC94!) |
| 50 | + |
| 51 | +## Experimental features |
| 52 | + |
| 53 | +The following experimental features are included in PowerShell 7.6-preview.2: |
| 54 | + |
| 55 | +- [PSNativeWindowsTildeExpansion][01] - Add tilde expansion for windows native executables |
| 56 | +- [PSRedirectToVariable][02] - Allow redirecting to a variable |
| 57 | +- [PSSerializeJSONLongEnumAsNumber][03] - `ConvertTo-Json` now treats large enums as numbers |
| 58 | + |
| 59 | +<!-- end of content --> |
| 60 | +<!-- reference links --> |
| 61 | +[01]: ../learn/experimental-features.md#psnativewindowstildeexpansion |
| 62 | +[02]: ../learn/experimental-features.md#psredirecttovariable |
| 63 | +[03]: ../learn/experimental-features.md#psserializejsonlongenumasnumber |
| 64 | +[04]: https://github.com/PowerShell/PowerShell/blob/master/CHANGELOG/preview.md |
| 65 | + |
| 66 | +[17785]: https://github.com/PowerShell/PowerShell/pull/17785 |
| 67 | +[18019]: https://github.com/PowerShell/PowerShell/pull/18019 |
| 68 | +[18955]: https://github.com/PowerShell/PowerShell/pull/18955 |
| 69 | +[20330]: https://github.com/PowerShell/PowerShell/pull/20330 |
| 70 | +[21115]: https://github.com/PowerShell/PowerShell/pull/21115 |
| 71 | +[21117]: https://github.com/PowerShell/PowerShell/pull/21117 |
| 72 | +[21137]: https://github.com/PowerShell/PowerShell/pull/21137 |
| 73 | +[24669]: https://github.com/PowerShell/PowerShell/pull/24669 |
| 74 | +[24714]: https://github.com/PowerShell/PowerShell/pull/24714 |
| 75 | +[24747]: https://github.com/PowerShell/PowerShell/pull/24747 |
0 commit comments