Dongbo Wang
5d871eb5e0
Honor -Recurse when Get-ChildItem uses -Name ( #28078 )
2026-10-09 10:21:53 -07:00
Dongbo Wang
373f6a7b79
Fix Resolve-Path -Relative output for dot-prefixed names ( #28087 )
2026-10-09 10:21:34 -07:00
Dongbo Wang
bcd1e697d6
Treat StringCollection as a list collection with the String element type ( #28141 )
2026-10-09 09:37:48 -07:00
Dongbo Wang
bd8cb01a7d
Fix duplicate results from Get-Command fuzzy matching ( #28042 )
2026-10-09 09:35:49 -07:00
Dongbo Wang
c4ae347dc9
Avoid extra SMB queries when formatting file names ( #28038 )
2026-10-09 09:35:18 -07:00
Dongbo Wang
c172d736a6
Move to the latest Microsoft.PowerShell.Native package and add test ( #28173 )
2026-10-08 16:40:53 -07:00
b95da22ffb
Add native Azure Linux 4 RPM packaging ( #28107 )
...
Co-authored-by: Justin Chung <chungjustin@microsoft.com >
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com >
2026-10-06 15:52:04 -05:00
xtqqczze
134c00dda9
Update HelpersRemoting.psm1 to handle an exception better ( #27903 )
2026-09-29 12:06:17 -07:00
Dongbo Wang
5f9fcddc28
Fix the PATH test for MSIX installed PowerShell ( #28068 )
2026-09-25 11:04:21 -07:00
9e734952a6
Mark DSC Profile tests pending on MSIX test runs ( #27884 )
...
Co-authored-by: Justin Chung <chungjustin@microsoft.com >
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com >
2026-09-21 15:09:31 -05:00
Justin Chung
03aae6967d
Fix telemetry UUID mutex acquisition ( #28026 )
2026-09-21 12:12:46 -07:00
84a9301510
Tolerate IO/JSON errors reading the per-user powershell.config.json ( #27373 )
...
Co-authored-by: Justin Chung <chungjustin@microsoft.com >
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-09-18 16:11:58 -05:00
Dongbo Wang
2179219c84
Allow user to force the default implicit formatting to use AutoSize ( #28018 )
...
When `$PSStyle.AutoSizeDefaultFormatting = $true`, the default implicit formatting applied by PowerShell (via `Out-Default`) will enforce `AutoSize` when the chosen formatting view is `table` or `wide`, similar to running `Format-Table -AutoSize` and `Format-Wide -AutoSize` explicitly. The `List` and `Complex` views formatting won't be buffered though -- they will continue to be streamed.
This allows PowerShell to generate less verbose output when used by an agent. It also makes PowerShell works better with small-window terminal.
2026-09-17 14:27:16 -07:00
Travis Plunk
88937ea0a7
Fix flaky Debug-Runspace attach event test ( #27885 )
2026-09-16 14:50:13 -07:00
Anam Navied
9f7b30680d
Improve CAB extraction path handling ( #28009 )
2026-09-11 15:23:35 -07:00
Anam Navied
85efec2e1e
Improve validation for Copy-Item -FromSession ( #28006 )
2026-09-11 13:41:30 -07:00
powershell-pr-automation[bot]
d54afc0d5e
Move to the .NET SDK 11-rc.1 for preview release ( #27992 )
2026-09-09 11:25:42 -07:00
Dongbo Wang
0a64a2d92a
Fix LocProject.json tests and trigger CIs on changes to LocProject.json ( #27988 )
2026-09-09 09:14:03 -07:00
Dongbo Wang
d0f43b0034
Handle MSIX installation specially when prepend to PATH ( #27782 )
...
Update the code that prepends `$PSHOME` to `PATH` to handle the MSIX package installation specially -- it uses the stable path that points to the `ExecutionAlias` of the MSIX installation instead of `$PSHOME`.
2026-09-02 08:47:48 -07:00
Dongbo Wang
fcdb9f0c3c
Fix the localization tests for the Release Automation environment ( #27944 )
2026-09-01 15:54:26 -07:00
294fbbc8d6
Improve PowerShell Remoting Argument Validation ( #27870 )
...
Co-authored-by: Tess Gauthier <tessgauthier@microsoft.com >
Co-authored-by: Anam Navied <annavied@microsoft.com >
2026-08-20 17:00:26 -04:00
Anam Navied and Patrick Meinecke
91448ff154
Improve Authorization Header default and redirect behavior ( #27873 )
...
Co-authored-by: Patrick Meinecke <pmeinecke@microsoft.com >
2026-08-20 16:57:20 -04:00
Anam Navied
ad9c8fb93c
Add the xsd validation back for CIM cmdlets ( #27869 )
2026-08-20 10:00:51 -07:00
Dongbo Wang
f48794c645
Fix the regression in tab completing positional parameters ( #27857 )
2026-08-19 12:14:37 -07:00
Dongbo Wang
9337fa1411
Fix the scripts used for Copy-Item -FromSessoin/-ToSession scenarios and also enable tests ( #27773 )
...
- Fix the scripts used for `Copy-Item -FromSessoin/-ToSession` and `PSEdit`. They use `-Encoding Byte`, which only works in PS5.1. In PS 7+, we need to use `-AsByteStream` instead. So, those scenarios (copy alternate data stream to/from remote PS 7 session and edit file from a remote PS 7 session) have been broken for a long time.
- The remote tests for `Copy-Item` have always been disabled. This PR re-enables those tests for Windows (the `HelperRemoting` module only works on Windows).
2026-08-18 16:01:04 -07:00
Dongbo Wang
bac40c877b
Fix PATH caching in CommandDiscovery code ( #27809 )
...
The method `GetLookupDirectoryPaths` always returns the cached instance of path collection. However, the returned collection gets mutated in `CommandPathSearch.ResolveCurrentDirectoryInLookupPaths` to resolve the relative paths such as `.\tools` based on the user's current working directory `$PWD`, so for example, `.\tools` gets replaced with `cwd-1\tools` in the cached instance. Then, when the user changes to a different working directory `cwd-2`, command discovery won't find the executable or ps1 script under `cwd-2/tools` as expected, but those executables under `cwd-1\tools` will always be discoverable no matter what the `$PWD` is. That behavior is incorrect.
This pull request improves the caching logic of `GetLookupDirectoryPaths` and makes it return a copy of the path collection, so the mutation happens to the returned copy, and the cached instance is kept intact. So, for every command search, the `CommandPathSearch` will resolve relative paths against the `$PWD` that the user is located at that time.
2026-08-17 15:31:31 -07:00
Kirtikumar Anandrao Ramchandani and Justin Chung
f83ccddf80
Add New-TemporaryDirectory cmdlet ( #27549 )
...
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com >
2026-08-17 13:35:04 -05:00
Kirtikumar Anandrao Ramchandani and Justin Chung
91ce9844e2
Fix TimeZone test with duplicate names ( #27525 )
...
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com >
2026-08-10 14:07:19 -05:00
Patrick Meinecke
2ca393d6b8
Add support for new WLDP setting EnableFileOnlyEntry ( #26752 )
2026-08-10 13:29:03 -04:00
Dongbo Wang
cb7567431b
Update the manifest resource names for the localized resources embedded in satellite assemblies ( #27756 )
2026-08-03 13:08:53 -07:00
Dongbo Wang
f9543fa3ff
Update LocProject.json to list each English resource file directly ( #27751 )
2026-07-31 15:33:39 -07:00
Dongbo Wang
855d94376b
Prepare for onboarding PowerShell to the Native2Native localization pipeline ( #27667 )
...
1. Create the `LocProject.json` file for PowerShell localization.
2. Remove the unused `.resx` resource files and source files.
3. Update the `ResourceValidation` tests.
2026-07-20 12:21:39 -07:00
PowerShell Team Bot
0c226762e2
[master] Update branch for release ( #27683 )
2026-07-14 22:35:53 +00:00
6f7ffc2a17
Change New-Guid to generate UUID v7 by default ( #27033 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com >
2026-06-26 11:25:35 -05:00
7d596de5f5
Fix progress bar rendering with double-width unicode characters ( #26185 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com >
2026-06-26 11:15:10 -05:00
PowerShell Team Bot and Aditya Patwardhan
6ae5efcd4a
[master] Update branch for release ( #27582 )
...
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com >
2026-06-10 15:02:31 -04:00
PowerShell Team Bot
f1aaf15413
Update branch to use the .NET 11 SDK 11.0.100-preview.4 ( #27504 )
2026-05-22 17:28:08 -07:00
Dongbo Wang
c9ac205fda
Handle empty-string and null-value results returned from custom argument completer more properly ( #27398 )
2026-05-11 11:59:37 -07:00
Anam Navied
ddff03a50f
Create PowerShell package for arm debian distribution ( #26925 )
2026-05-05 11:29:02 -07:00
Dongbo Wang
65e6a8055c
Update PowerShell telemetry to respect the diagnostics and feedback setting on Windows ( #27328 )
2026-04-24 09:52:06 -07:00
Patrick Meinecke and Dongbo Wang
e2784b8867
Update MaxVisitCount and MaxHashtableKeyCount if VisitorSafeValueContext indicates SkipLimitCheck is true ( #27306 )
...
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2026-04-20 10:56:25 -07:00
PowerShell Team Bot
6cc1e7071d
[master] Update branch for release ( #27291 )
2026-04-17 13:03:11 -05:00
72be78e6be
Remove MSI from publishing pipeline ( #27213 )
...
Co-authored-by: Justin Chung <chungjustin@microsoft.com >
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com >
2026-04-16 15:01:35 -04:00
PowerShell Team Bot
1b390e1fa7
Update package references and move to .NET SDK 11.0-preview.2 ( #27117 )
2026-03-31 12:22:31 -07:00
Dongbo Wang
78e437c6f3
Fix the PSNativeCommandArgumentPassing test ( #27057 )
2026-03-18 15:32:15 -07:00
312291762e
Fix ConvertFrom-ClearlyDefinedCoordinates to handle API object coordinates ( #26893 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com >
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
Co-authored-by: PowerShell Team Bot <69177312+pwshBot@users.noreply.github.com >
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2026-03-10 18:16:18 -04:00
Dongbo Wang
7ca2b72af7
Fix a preview detection test for the packaging script ( #26882 )
2026-02-23 12:33:12 -08:00
xtqqczze
cfd5966530
Enable CA1852: Seal internal types ( #25890 )
2026-02-23 11:11:12 -08:00
Dongbo Wang
c19a440244
Fix Import-Module.Tests.ps1 to handle Arm32 platform ( #26862 )
2026-02-20 14:05:55 -08:00
Yoshifumi
2f08eb44e6
Add comprehensive PowerShell class tests for ConvertTo-Json ( #26769 )
2026-02-19 11:04:48 -08:00