NOTE
- Snap packages are not available for this release.
- Nano server docker images are not available for this release.
Engine Updates and Fixes
- Add Instrumentation to AmsiUtil and make the init variable readonly (#18727)
- Fix typo in OutOfProcTransportManager.cs (#18766) (Thanks @eltociear!)
- Allow non-default encodings to be used in user's script/code (#18605)
- Add Dim and DimOff to $PSStyle (#18653)
- Change exec from alias to function to handle arbitrary arguments (#18567)
- The command prefix should also be in the error color for NormalView (#18555)
- Skip cloud files marked as "not on disk" during command discovery (#18152)
- Replace UTF8Encoding(false) with Encoding.Default (#18356) (Thanks @xtqqczze!)
- Fix Switch-Process to set termios appropriate for child process (#18467)
- On Unix, only explicitly terminate the native process if not in background (#18215)
- Treat [NullString]::Value as the string type when resolving methods (#18080)
- Improve pseudo binding for dynamic parameters (#18030) (Thanks @MartinGC94!)
- Make experimental feature PSAnsiRenderingFileInfo stable (#18042)
- Update to use version 2.21.0 of Application Insights. (#17903)
- Do not preserve temporary results when no need to do so (#17856)
Performance
- Remove some static constants from Utils.Separators (#18154) (Thanks @iSazonov!)
- Avoid using regex when unnecessary in ScriptWriter (#18348)
- Use source generator for PSVersionInfo to improve startup time (#15603) (Thanks @iSazonov!)
- Skip evaluating suggestions at startup (#18232)
- Avoid using Regex when not necessary (#18210)
General Cmdlet Updates and Fixes
- Update to use ComputeCore.dll for PowerShell Direct (#18194)
- Replace ArgumentNullException(nameof()) with ArgumentNullException.ThrowIfNull() (#18792)(#18784) (Thanks @CarloToso!)
- Remove TabExpansion from remote session configuration (#18795) (Internal 23331)
- WebCmdlets get Retry-After from headers if status code is 429 (#18717) (Thanks @CarloToso!)
- Implement SupportsShouldProcess in Stop-Transcript (#18731) (Thanks @JohnLBevan!)
- Fix New-Item -ItemType Hardlink to resolve target to absolute path and not allow link to itself (#18634)
- Add output types to Format commands (#18746) (Thanks @MartinGC94!)
- Fix the process CommandLine on Linux (#18710) (Thanks @jborean93!)
- Fix SuspiciousContentChecker.Match to detect a pre-defined string when the text starts with it (#18693)
- Switch $PSNativeCommandUseErrorActionPreference to $true when feature is enabled (#18695)
- Fix Start-Job to check the existence of working directory using the PowerShell way (#18675)
- Webcmdlets add 308 to redirect codes and small cleanup (#18536) (Thanks @CarloToso!)
- Ensure HelpInfo.Category is consistently a string (#18254)
- Remove gcloud from the legacy list because it's resolved to a .ps1 script (#18575)
- Add gcloud and sqlcmd to list to use legacy argument passing (#18559)
- Fix native access violation (#18545) (#18547) (Thanks @chrullrich!)
- Fix issue when completing the first command in a script with an empty array expression (#18355) (Thanks @MartinGC94!)
- Improve type inference of hashtable keys (#17907) (Thanks @MartinGC94!)
- Fix Switch-Process to copy the current env to the new process (#18452)
- Fix Switch-Process error to include the command that is not found (#18443)
- Update Out-Printer to remove all decorating ANSI escape sequences from PowerShell formatting (#18425)
- Web cmdlets set default charset encoding to UTF8 (#18219) (Thanks @CarloToso!)
- Fix incorrect cmdlet name in the script used by Restart-Computer (#18374) (Thanks @urizen-source!)
- Add the function cd~ (#18308) (Thanks @GigaScratch!)
- Fix type inference error for empty return statements (#18351) (Thanks @MartinGC94!)
- Fix the exception reporting in ConvertFrom-StringData (#18336) (Thanks @GigaScratch!)
- Implement IDisposable in NamedPipeClient (#18341) (Thanks @xtqqczze!)
- Replace command-error suggestion with new implementation based on subsystem plugin (#18252)
- Remove the ProcessorArchitecture portion from the full name as it's obsolete (#18320)
- Make the fuzzy searching flexible by passing in the fuzzy matcher (#18270)
- Add -FuzzyMinimumDistance parameter to Get-Command (#18261)
- Improve startup time by triggering initialization of additional types on background thread (#18195)
- Fix decompression in web cmdlets (#17955) (Thanks @iSazonov!)
- Add CustomTableHeaderLabel formatting to differentiate table header labels that are not property names (#17346)
- Remove the extra new line form List formatting (#18185)
- Minor update to the FileInfo table formatting on Unix to make it more concise (#18183)
- Fix Parent property on processes with complex name (#17545) (Thanks @jborean93!)
- Make PowerShell class not affiliate with Runspace when declaring the NoRunspaceAffinity attribute (#18138)
- Complete the progress bar rendering in Invoke-WebRequest when downloading is complete or cancelled (#18130)
- Display download progress in human readable format for Invoke-WebRequest (#14611) (Thanks @bergmeister!)
- Update WriteConsole to not use stackalloc for buffer with too large size (#18084)
- Filter out compiler generated types for Add-Type -PassThru (#18095)
- Fixing CA2014 warnings and removing the warning suppression (#17982) (Thanks @creative-cloud!)
- Make experimental feature PSNativeCommandArgumentPassing stable (#18044)
- Make experimental feature PSAMSIMethodInvocationLogging stable (#18041)
- Handle PSObject argument specially in method invocation logging (#18060)
- Fix typos in EventResource.resx (#18063) (Thanks @eltociear!)
- Make experimental feature PSRemotingSSHTransportErrorHandling stable (#18046)
- Make experimental feature PSExec stable (#18045)
- Make experimental feature PSCleanBlock stable (#18043)
- Fix error formatting to use color defined in $PSStyle.Formatting (#17987)
- Remove unneeded use of chmod 777 (#17974)
- Support mapping foreground/background ConsoleColor values to VT escape sequences (#17938)
- Make pwsh server modes implicitly not show banner (#17921)
- Add output type attributes for Get-WinEvent (#17948) (Thanks @MartinGC94!)
- Remove 1 second minimum delay in Invoke-WebRequest for small files, and prevent file-download-error suppression. (#17896) (Thanks @AAATechGuy!)
- Add completion for values in comparisons when comparing Enums (#17654) (Thanks @MartinGC94!)
- Fix positional argument completion (#17796) (Thanks @MartinGC94!)
- Fix member completion in attribute argument (#17902) (Thanks @MartinGC94!)
- Throw when too many parameter sets are defined (#17881) (Thanks @fflaten!)
- Limit searching of charset attribute in meta tag for HTML to first 1024 characters in webcmdlets (#17813)
- Fix Update-Help failing silently with implicit non-US culture. (#17780) (Thanks @dkaszews!)
- Add the ValidateNotNullOrWhiteSpace attribute (#17191) (Thanks @wmentha!)
- Improve enumeration of inferred types in pipeline (#17799) (Thanks @MartinGC94!)
Source:
Release v7.4.0-preview.1 Release of PowerShell · PowerShell/PowerShell
7.4.0-preview.1 - 2022-12-20 NOTE Snap packages are not available for this release. Nano server docker images are not available for this release. Engine Updates and Fixes Add Instrumentation to ...
PowerShell Preview - Free download and install on Windows | Microsoft Store
PowerShell is a task-based command-line shell and scripting language built on .NET. PowerShell helps system administrators and power-users rapidly automate tasks that manage operating systems (Linux, macOS, and Windows) and processes. PowerShell commands let you manage computers from the...
apps.microsoft.com