We’re excited to announce the General Availability of PowerShell 7.7, the next Standard Term Support (STS) release of PowerShell. PowerShell 7.7 is built on .NET 11, continuing the alignment between PowerShell and the modern .NET platform.
PowerShell 7.7 focuses on security hardening, new and improved commands, and reliability across the engine, remoting, and interactive shell experience.
Notable areas of improvement include:
- Security hardening across Constrained Language Mode, remoting, and help
- New commands and parameters
- More predictable handling of switch parameters
- Startup, tab completion, and file system fixes
- Module updates
For support dates, see the PowerShell support lifecycle article.
Highlights
- PowerShell 7.7 is built on .NET 11
- PowerShell 7.7 includes updates to the following modules:
- Microsoft.PowerShell.PSResourceGet
- Microsoft.PowerShell.Archive
- New and improved commands
- Added the
New-TemporaryDirectorycmdlet - Added the
-Extensionparameter toJoin-Path - Added the
-ExcludePropertyparameter toFormat-Table,Format-List, andFormat-Custom Get-AuthenticodeSignaturenow returns aSubjectAlternativeNameproperty- Added a
ToRegex()method toWildcardPattern New-Guidnow generates version 7 (time-sortable) UUIDs by default
- Added the
- Security hardening
- Additional protections for Constrained Language Mode, including property assignment on non-core objects
- Stronger argument and frame validation in PowerShell remoting, and restored schema validation in the CIM cmdlets
- Implicit remoting protections now apply to resolved aliases
- Stricter validation when extracting updatable help
- Tighter file permissions for the fallback temporary home directory on Unix platforms
Test-Jsonno longer resolves external schema references unless you ask it to
- More predictable switch parameters
- Explicit
-Switch:$falsevalues are now respected bySplit-Path,New-PSSession,Test-Connection,Get-TimeZone,Get-Random,Get-SecureRandom,Get-Uptime, andNew-Guid, and by the operator parameters ofWhere-Object
- Explicit
- Reliability and quality improvements
- A damaged or unreadable per-user
powershell.config.jsonno longer stops PowerShell from starting - Fixed
Resolve-Path -Relativefor names that begin with a dot - Fixed duplicate results from
Get-Commandfuzzy matching - Fixed
Clear-Hostfor remote Windows sessions from non-Windows platforms - Fixed tab completion of positional parameters and completion for
$PSBoundParameters.Keys - Improved handling of custom argument completers that return empty or null results
- Fixed
pwsh -filedot-sourcing of advanced-function scripts - Fixed progress bar rendering for double-width Unicode characters
- A damaged or unreadable per-user
- Telemetry now respects the Windows diagnostics and feedback setting
A quick example
New-TemporaryDirectory creates a uniquely named directory in the system temp folder and returns a
DirectoryInfo object. Use -Prefix to make the directory easier to recognize:
# Create a uniquely named directory in the system temp folder
$workDir = New-TemporaryDirectory -Prefix build
$workDir.FullName
# Remove it when you're done
Remove-Item -LiteralPath $workDir.FullName -Recurse
Breaking changes
PowerShell 7.7 includes a small number of breaking changes. Review them before you upgrade production scripts.
New-Guidgenerates version 7 (time-sortable) UUIDs by default instead of version 4. Use[guid]::NewGuid()when you need a fully random GUID.Format-Table,Format-List, andFormat-Customnow validate that-Propertyis not null or empty.- Null-or-empty argument validation now throws
System.ArgumentException. - Explicit false values for
Where-Objectoperator switches, such as-EQ:$false, are now handled correctly.
Other behavior changes
These changes might also affect existing scripts:
- The update notification feature was removed from PowerShell.
Test-Jsonrequires-FetchExternalReferenceto resolve external schema references.Export-Csvno longer accepts-Appendtogether with-NoHeader. Using-NoTypeInformationon the CSV cmdlets now writes a deprecation warning and has no effect.Get-ChildItem -Namewith-Recursenow returns matching files in subdirectories when the path contains a wildcard or names a file.- Constrained Language Mode restricts property assignment on non-core objects, including through
ForEach().
Community contributions
PowerShell is built by a global community of users and contributors. Thank you to everyone who filed issues, tested previews, improved docs, and submitted fixes during the PowerShell 7.7 release cycle.
We want to give a special thanks to the community members who spent the most time helping others in the repository this release:
- Top pull request commenters: @iSazonov, @muffy86, and @KirtiRamchandani
- Top issue commenters: @mklement0, @237dmitry, and @rhubarb-geek-nz
The following individuals contributed code to the PowerShell 7.7 release:
- @adamdriscoll, @amritanand-py, @behradbhrmi, @cuiweixie, @jborean93
- @jorgeasaurus, @kasperk81, @KirtiRamchandani, @logiclrd, @MartinGC94
- @MathiasMagnus, @mikkas456, @powercode, @reabr, @rwp0
- @scuzqy, @SufficientDaikon, @ThioJoe, @trackd, @xtqqczze
- @yotsuda, @yuunnn
Call to action
Install PowerShell 7.7 now.
For more information, see the following articles:
Looking ahead
We continue to work on future releases of PowerShell. Preview releases will continue to provide early access to new capabilities and improvements, and your feedback on them helps us ship with confidence.
PowerShell Team
No MSI, no thanks. You guys continue to be actively hostile to your user base. Or you just don’t get it. Either way, we deserve better.
This is Microsoft SLOP again! Make Powershell 7.7 available via MSI. MSIX is more of an annoyance than a product update!
Sorry but if I understand right then it is not possible to install PS 7.7 for all users on a system because only MSIX is supported? That makes absolutely no sense and will prevent a lot of companies, including mine, from upgrading. Installing PS per user makes absolutely no sense given that there are batch processes that uses PS, many users on a single system and servers that might have no regular logged in users. Having the same copy of software like PS installed multiple times is a resource hog and a security issue. Nobody in their right mind...
I bet this was a hard deadline to release PS 7.7 with MSIX no matter what.
We are also staying with PS 7.6 until this gets sorted out.
I ran the PowerShell-7.7.0.msixbundle file from an elevated Command Prompt, and it still installed into my user profile.
How do I install this thing system wide so all the service-accounts from scheduled tasks get access to it as well?
Thanks for trying it. Installing for all users and service accounts isn’t supported by the MSIX package yet. It’s tracked here: https://github.com/PowerShell/PowerShell/issues/27565. Until then, the 7.6 MSI is the option for that scenario.
Would it not be reasonable to keep providing MSI packages for Powershell until MSIX packages are capable of server installations?
As it stands now, you have created yet another layer of legacy Powershell versioning to contend with.
MSIX is a better, more modern technology than MSI.
Use Windows Server Core when possible to reduce resource overhead and vulnerability footprint.
MSIX does not work on Windows Server Core.
Thanks, guys. Thank you very much.
Thanks for the feedback. MSIX on Windows Server Core is a known gap, and we track it, along with the other MSIX issues, in the master issue: https://github.com/PowerShell/PowerShell/issues/27565. If your scenario hits any of these, staying on 7.6 (which still ships an MSI) until they’re resolved is a good option.
Note that the linked “What’s new page” (both 7.7. and LTS 7.6 version) haven’t been updated to reflect GA yet. (Still reference preview versions, install section points to 7.6 .msi, etc.)
Thank you. The “What’s New” is in progress.
Are there no MSI with this release? They’re not on the Assets list.
Announced: https://devblogs.microsoft.com/powershell/powershell-msi-deprecation/
Known transition/deprecation of .MSI, has been in a few of the announcements, discussed in the community calls a couple times at least.
https://github.com/PowerShell/PowerShell/discussions/27292