PowerShell 7.6.6 renames the ThreadJob module and updates core modules
Microsoft’s What’s New in PowerShell 7.6 page covers PowerShell 7.6.6, which is built on the .NET 10.0.12 runtime.
Updated modules: Microsoft.PowerShell.PSResourceGet v1.2.0, PSReadLine v2.4.5 and Microsoft.PowerShell.ThreadJob v2.2.0.
Breaking changes to check:
- The Microsoft.PowerShell.ThreadJob module replaces the ThreadJob module. Start-ThreadJob has not changed, but scripts that use the module-qualified name should be updated to Microsoft.PowerShell.ThreadJob\Start-ThreadJob.
- WildcardPattern.Escape now escapes lone backticks correctly.
- Join-Path converts the -ChildPath parameter to string[].
- A trailing space is removed from the event source name.
The macOS PKG package is now notarized and signed by Microsoft.
Who is affected: administrators whose scripts call the ThreadJob module by its old name, or depend on event source names or Join-Path behavior.
What to do: read the breaking changes before you upgrade, and test your scripts on PowerShell 7.6.6 first. The page points to the GitHub CHANGELOG for the full list of changes.