Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions reference/7.6/Microsoft.PowerShell.Host/Start-Transcript.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.ConsoleHost.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Host
ms.date: 01/06/2025
ms.date: 02/18/2025
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.host/start-transcript?view=powershell-7.6&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Start-Transcript
Expand Down Expand Up @@ -92,7 +92,7 @@ $hostname = hostname
$version = $PSVersionTable.PSVersion.ToString()
$datetime = Get-Date -f 'yyyyMMddHHmmss'
$filename = "Transcript-${username}-${hostname}-${version}-${datetime}.txt"
$Transcript = (Join-Path -Path $sharepath -ChildPath $filename).ToString()
$Transcript = Join-Path -Path $sharepath -ChildPath $filename
Start-Transcript
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,56 +1,77 @@
---
title: What's New in PowerShell 7.6
description: New features and changes released in PowerShell 7.6
ms.date: 01/17/2025
ms.date: 02/18/2025
---

# What's New in PowerShell 7.6

PowerShell 7.6-preview.2 includes the following features, updates, and breaking changes. PowerShell
PowerShell 7.6-preview.3 includes the following features, updates, and breaking changes. PowerShell
7.6 is built on .NET 9.0.101 GA release.

For a complete list of changes, see the [CHANGELOG][04] in the GitHub repository.

## Breaking Changes

No breaking changes were introduced in PowerShell 7.6-preview.2.

## Updated modules

PowerShell 7.6-preview.2 includes the following updated modules:
PowerShell 7.6-preview.3 includes the following updated modules:

- **Microsoft.PowerShell.PSResourceGet** v1.1.0-RC3
- **Microsoft.PowerShell.PSResourceGet** v1.1.0
- **PSReadLine** v2.3.6

## Breaking Changes

- Remove trailing space from event source name ([#24192][24192]) (Thanks @MartinGC94!)

## Tab completion improvements

- Update Named and Statement block type inference to not consider AssignmentStatements and
- Update Named and Statement block type inference to not consider **AssignmentStatements** and
Increment/decrement operators as part of their output ([#21137][21137]) (Thanks @MartinGC94!)
- Add -PropertyType argument completer for New-ItemProperty ([#21117][21117]) (Thanks
- Add `-PropertyType` argument completer for `New-ItemProperty` ([#21117][21117]) (Thanks
@ArmaanMcleod!)
- Add completion single/double quote support for `-Noun` parameter for `Get-Command`
([#24977][24977]) (Thanks @ArmaanMcleod!)
- Add completion single/double quote support for `-PSEdition` parameter for `Get-Module`
([#24971][24971]) (Thanks @ArmaanMcleod!)
- Convert **InvalidCommandNameCharacters** in AnalysisCache to `SearchValues<char>` for more
efficient char searching ([#24880][24880]) (Thanks @ArmaanMcleod!)
- Convert **s_charactersRequiringQuotes** in Completion Completers to `SearchValues<char>` for more
efficient char searching ([#24879][24879]) (Thanks @ArmaanMcleod!)
- Update `IndexOfAny()` calls with invalid path/filename to `SearchValues<char>` for more efficient
char searching ([#24896][24896]) (Thanks @ArmaanMcleod!)
- Replace `char[]` array in `CompletionRequiresQuotes` with cached `SearchValues<char>`
([#24907][24907]) (Thanks @ArmaanMcleod!)
- Add quote handling in `Verb`, `StrictModeVersion`, `Scope` and `PropertyType` Argument
Completers with single helper method ([#24839][24839]) (Thanks @ArmaanMcleod!)

## Cmdlet improvements

- Add -ExcludeModule parameter to Get-Command ([#18955][18955]) (Thanks @MartinGC94!)
- Return correct FileName property for Get-Item when listing alternate data streams
- Add `-ExcludeModule` parameter to `Get-Command` ([#18955][18955]) (Thanks @MartinGC94!)
- Return correct **FileName** property for `Get-Item` when listing alternate data streams
([#18019][18019]) (Thanks @kilasuit!)
- Fix Get-ItemProperty to report non-terminating error for cast exception ([#21115][21115]) (Thanks
@ArmaanMcleod!)
- Fix a bug in how Write-Host handles XmlNode object ([#24669][24669]) (Thanks @brendandburns!)
- Fix `Get-ItemProperty` to report non-terminating error for cast exception ([#21115][21115])
(Thanks @ArmaanMcleod!)
- Fix a bug in how q handles XmlNode object ([#24669][24669]) (Thanks @brendandburns!)
- Error when `New-Item -Force` is passed an invalid directory name ([#24936][24936]) (Thanks
@kborowinski!)
- Allow `Start-Transcript` to use `$Transcript` which is a `PSObject` wrapped string to specify the
transcript path ([#24963][24963]) (Thanks @kborowinski!)
- Improve `Start-Process -Wait` polling efficiency ([#24711][24711]) (Thanks @jborean93!)
- Add completion of modules by their shortname ([#20330][20330]) (Thanks @MartinGC94!)

## Engine improvements

- Added the AIShell module to telemetry collection list ([#24747][24747])
- Added helper in EnumSingleTypeConverter to get enum names as array ([#17785][17785]) (Thanks
- Added helper in `EnumSingleTypeConverter` to get enum names as array ([#17785][17785]) (Thanks
@fflaten!)
- Update DnsNameList for X509Certificate2 to use
X509SubjectAlternativeNameExtension.EnumerateDnsNames Method ([#24714][24714]) (Thanks
- Update **DnsNameList** for **X509Certificate2** to use
`X509SubjectAlternativeNameExtension.EnumerateDnsNames()` Method ([#24714][24714]) (Thanks
@ArmaanMcleod!)
- Add completion of modules by their shortname ([#20330][20330]) (Thanks @MartinGC94!)
- Stringify **ErrorRecord** with empty exception message to empty string ([#24949][24949]) (Thanks
@MatejKafka!)

## Experimental features

The following experimental features are included in PowerShell 7.6-preview.2:
The following experimental features are included in PowerShell 7.6-preview.3:

- [PSNativeWindowsTildeExpansion][01] - Add tilde expansion for windows native executables
- [PSRedirectToVariable][02] - Allow redirecting to a variable
Expand All @@ -70,6 +91,17 @@ The following experimental features are included in PowerShell 7.6-preview.2:
[21115]: https://github.com/PowerShell/PowerShell/pull/21115
[21117]: https://github.com/PowerShell/PowerShell/pull/21117
[21137]: https://github.com/PowerShell/PowerShell/pull/21137
[24192]: https://github.com/PowerShell/PowerShell/pull/24192
[24669]: https://github.com/PowerShell/PowerShell/pull/24669
[24711]: https://github.com/PowerShell/PowerShell/pull/24711
[24714]: https://github.com/PowerShell/PowerShell/pull/24714
[24747]: https://github.com/PowerShell/PowerShell/pull/24747
[24839]: https://github.com/PowerShell/PowerShell/pull/24839
[24879]: https://github.com/PowerShell/PowerShell/pull/24879
[24880]: https://github.com/PowerShell/PowerShell/pull/24880
[24907]: https://github.com/PowerShell/PowerShell/pull/24907
[24936]: https://github.com/PowerShell/PowerShell/pull/24936
[24949]: https://github.com/PowerShell/PowerShell/pull/24949
[24963]: https://github.com/PowerShell/PowerShell/pull/24963
[24971]: https://github.com/PowerShell/PowerShell/pull/24971
[24977]: https://github.com/PowerShell/PowerShell/pull/24977