11---
22title : What's New in PowerShell 7.6
33description : New features and changes released in PowerShell 7.6
4- ms.date : 01/17 /2025
4+ ms.date : 02/18 /2025
55---
66
77# What's New in PowerShell 7.6
88
9- PowerShell 7.6-preview.2 includes the following features, updates, and breaking changes. PowerShell
9+ PowerShell 7.6-preview.3 includes the following features, updates, and breaking changes. PowerShell
10107.6 is built on .NET 9.0.101 GA release.
1111
1212For a complete list of changes, see the [ CHANGELOG] [ 04 ] in the GitHub repository.
1313
14- ## Breaking Changes
15-
16- No breaking changes were introduced in PowerShell 7.6-preview.2.
17-
1814## Updated modules
1915
20- PowerShell 7.6-preview.2 includes the following updated modules:
16+ PowerShell 7.6-preview.3 includes the following updated modules:
2117
22- - ** Microsoft.PowerShell.PSResourceGet** v1.1.0-RC3
18+ - ** Microsoft.PowerShell.PSResourceGet** v1.1.0
2319- ** PSReadLine** v2.3.6
2420
21+ ## Breaking Changes
22+
23+ - Remove trailing space from event source name ([ #24192 ] [ 24192 ] ) (Thanks @MartinGC94 !)
24+
2525## Tab completion improvements
2626
27- - Update Named and Statement block type inference to not consider AssignmentStatements and
27+ - Update Named and Statement block type inference to not consider ** AssignmentStatements** and
2828 Increment/decrement operators as part of their output ([ #21137 ] [ 21137 ] ) (Thanks @MartinGC94 !)
29- - Add -PropertyType argument completer for New-ItemProperty ([ #21117 ] [ 21117 ] ) (Thanks
29+ - Add ` -PropertyType ` argument completer for ` New-ItemProperty ` ([ #21117 ] [ 21117 ] ) (Thanks
3030 @ArmaanMcleod !)
31+ - Add completion single/double quote support for ` -Noun ` parameter for ` Get-Command `
32+ ([ #24977 ] [ 24977 ] ) (Thanks @ArmaanMcleod !)
33+ - Add completion single/double quote support for ` -PSEdition ` parameter for ` Get-Module `
34+ ([ #24971 ] [ 24971 ] ) (Thanks @ArmaanMcleod !)
35+ - Convert ** InvalidCommandNameCharacters** in AnalysisCache to ` SearchValues<char> ` for more
36+ efficient char searching ([ #24880 ] [ 24880 ] ) (Thanks @ArmaanMcleod !)
37+ - Convert ** s_charactersRequiringQuotes** in Completion Completers to ` SearchValues<char> ` for more
38+ efficient char searching ([ #24879 ] [ 24879 ] ) (Thanks @ArmaanMcleod !)
39+ - Update ` IndexOfAny() ` calls with invalid path/filename to ` SearchValues<char> ` for more efficient
40+ char searching ([ #24896 ] [ 24896 ] ) (Thanks @ArmaanMcleod !)
41+ - Replace ` char[] ` array in ` CompletionRequiresQuotes ` with cached ` SearchValues<char> `
42+ ([ #24907 ] [ 24907 ] ) (Thanks @ArmaanMcleod !)
43+ - Add quote handling in ` Verb ` , ` StrictModeVersion ` , ` Scope ` and ` PropertyType ` Argument
44+ Completers with single helper method ([ #24839 ] [ 24839 ] ) (Thanks @ArmaanMcleod !)
3145
3246## Cmdlet improvements
3347
34- - Add -ExcludeModule parameter to Get-Command ([ #18955 ] [ 18955 ] ) (Thanks @MartinGC94 !)
35- - Return correct FileName property for Get-Item when listing alternate data streams
48+ - Add ` -ExcludeModule ` parameter to ` Get-Command ` ([ #18955 ] [ 18955 ] ) (Thanks @MartinGC94 !)
49+ - Return correct ** FileName** property for ` Get-Item ` when listing alternate data streams
3650 ([ #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 !)
51+ - Fix ` Get-ItemProperty ` to report non-terminating error for cast exception ([ #21115 ] [ 21115 ] )
52+ (Thanks @ArmaanMcleod !)
53+ - Fix a bug in how q handles XmlNode object ([ #24669 ] [ 24669 ] ) (Thanks @brendandburns !)
54+ - Error when ` New-Item -Force ` is passed an invalid directory name ([ #24936 ] [ 24936 ] ) (Thanks
55+ @kborowinski !)
56+ - Allow ` Start-Transcript ` to use ` $Transcript ` which is a ` PSObject ` wrapped string to specify the
57+ transcript path ([ #24963 ] [ 24963 ] ) (Thanks @kborowinski !)
58+ - Improve ` Start-Process -Wait ` polling efficiency ([ #24711 ] [ 24711 ] ) (Thanks @jborean93 !)
59+ - Add completion of modules by their shortname ([ #20330 ] [ 20330 ] ) (Thanks @MartinGC94 !)
4060
4161## Engine improvements
4262
4363- Added the AIShell module to telemetry collection list ([ #24747 ] [ 24747 ] )
44- - Added helper in EnumSingleTypeConverter to get enum names as array ([ #17785 ] [ 17785 ] ) (Thanks
64+ - Added helper in ` EnumSingleTypeConverter ` to get enum names as array ([ #17785 ] [ 17785 ] ) (Thanks
4565 @fflaten !)
46- - Update DnsNameList for X509Certificate2 to use
47- X509SubjectAlternativeNameExtension.EnumerateDnsNames Method ([ #24714 ] [ 24714 ] ) (Thanks
66+ - Update ** DnsNameList** for ** X509Certificate2** to use
67+ ` X509SubjectAlternativeNameExtension.EnumerateDnsNames() ` Method ([ #24714 ] [ 24714 ] ) (Thanks
4868 @ArmaanMcleod !)
49- - Add completion of modules by their shortname ([ #20330 ] [ 20330 ] ) (Thanks @MartinGC94 !)
69+ - Stringify ** ErrorRecord** with empty exception message to empty string ([ #24949 ] [ 24949 ] ) (Thanks
70+ @MatejKafka !)
5071
5172## Experimental features
5273
53- The following experimental features are included in PowerShell 7.6-preview.2 :
74+ The following experimental features are included in PowerShell 7.6-preview.3 :
5475
5576- [ PSNativeWindowsTildeExpansion] [ 01 ] - Add tilde expansion for windows native executables
5677- [ PSRedirectToVariable] [ 02 ] - Allow redirecting to a variable
@@ -70,6 +91,17 @@ The following experimental features are included in PowerShell 7.6-preview.2:
7091[ 21115 ] : https://github.com/PowerShell/PowerShell/pull/21115
7192[ 21117 ] : https://github.com/PowerShell/PowerShell/pull/21117
7293[ 21137 ] : https://github.com/PowerShell/PowerShell/pull/21137
94+ [ 24192 ] : https://github.com/PowerShell/PowerShell/pull/24192
7395[ 24669 ] : https://github.com/PowerShell/PowerShell/pull/24669
96+ [ 24711 ] : https://github.com/PowerShell/PowerShell/pull/24711
7497[ 24714 ] : https://github.com/PowerShell/PowerShell/pull/24714
7598[ 24747 ] : https://github.com/PowerShell/PowerShell/pull/24747
99+ [ 24839 ] : https://github.com/PowerShell/PowerShell/pull/24839
100+ [ 24879 ] : https://github.com/PowerShell/PowerShell/pull/24879
101+ [ 24880 ] : https://github.com/PowerShell/PowerShell/pull/24880
102+ [ 24907 ] : https://github.com/PowerShell/PowerShell/pull/24907
103+ [ 24936 ] : https://github.com/PowerShell/PowerShell/pull/24936
104+ [ 24949 ] : https://github.com/PowerShell/PowerShell/pull/24949
105+ [ 24963 ] : https://github.com/PowerShell/PowerShell/pull/24963
106+ [ 24971 ] : https://github.com/PowerShell/PowerShell/pull/24971
107+ [ 24977 ] : https://github.com/PowerShell/PowerShell/pull/24977
0 commit comments