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
9bc534b19b
Remove the redundant #if UNIX check from the Unix only code ( #28120 )
2026-10-09 10:09:22 -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
29a743d40f
Use GetCurrentPackageFamilyNameNative API instead of path matching to detect MSIX installation ( #28029 )
2026-10-09 09:32:47 -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
Aditya Patwardhan
91d8df3f7c
Update Microsoft.PowerShell.Native package version ( #28168 )
2026-10-08 18:03:53 +00:00
olprod
f5fd48483f
Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2741383 ( #28093 )
2026-09-28 19:27:34 +00:00
olprod
f8628c69f3
Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2734773 ( #28060 )
2026-09-24 10:06:41 -07:00
Dongbo Wang
0817ada8e7
Replace the deprecated X509Certificate2 constructor with X509CertificateLoader.LoadCertificate ( #27965 )
2026-09-22 12:36:44 -07:00
Dongbo Wang
154bbe8486
Protect the fallback temporary home directory by enforcing and checking its file mode on Unix platforms ( #27985 )
2026-09-22 12:35:55 -07:00
Justin Chung
03aae6967d
Fix telemetry UUID mutex acquisition ( #28026 )
2026-09-21 12:12:46 -07:00
olprod
588a274b27
Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2730146 ( #28030 )
2026-09-21 09:33:48 -07:00
alerickson
1e53f6bbab
Update Microsoft.PowerShell.PSResourceGet to 1.3.0-preview2 ( #28031 )
2026-09-20 11:02:12 -05: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
olprod
65a001aead
Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2726204 ( #28025 )
2026-09-18 09:05:48 -07:00
olprod
e146aff0b3
Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2725870 ( #28023 )
2026-09-17 14:45:09 -07: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
Dongbo Wang
a049fa38ef
Prevent localization of WPF key gesture strings ( #28020 )
2026-09-17 14:19:19 -07:00
olprod
8c1e798297
Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2724482 ( #28010 )
2026-09-16 15:04:56 -07:00
Anam Navied and Anam Navied
5e35e5ac89
Improve pointer lifecycle handling in PdhHelper ( #28008 )
...
Co-authored-by: Anam Navied <annavied@microsoft.com >
2026-09-11 18:49:49 -04:00
Anam Navied
a71ba38db7
Improve remote prompt handling for PSCredential and SecureString arrays ( #28007 )
2026-09-11 15:24:07 -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
olprod
8a86458a50
Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2716742 ( #27983 )
2026-09-11 09:36:57 -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
olprod
6ca24ccf02
Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2704971 ( #27958 )
2026-09-02 19:23:20 -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
Travis Plunk
eef0852103
Add GetImportModuleCommand method back and check for session restriction in ShowCommand ( #25557 )
2026-09-02 08:45:08 -07:00
olprod
452ebf3eb4
Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2701735 ( #27895 )
2026-09-01 09:56:11 -07:00
be3fd7a04e
Correct New-TemporaryDirectory help URI ( #27934 )
...
Co-authored-by: Justin Chung <chungjustin@microsoft.com >
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com >
2026-09-01 10:37:25 -05:00
Dongbo Wang
eb8b76e7c6
Remove the <assembly> element for from CmdletizationCoreResources.resx ( #27900 )
2026-08-28 11:14:55 -07:00
Patrick Meinecke
80fdeb912a
Fix FileOnlyEntry crashing on older versions of Windows ( #27880 )
2026-08-26 12:45:21 -07:00
olprod
5e7d60bac8
Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2691582 ( #27876 )
2026-08-25 13:50:39 -07:00
Dongbo Wang
4870e903d8
Fix comments in CmdletizationCoreResources.resx ( #27879 )
2026-08-24 15:10:33 -07:00
Anam Navied and Anam Navied
929903692e
Call CodeGeneration.EscapeSingleQuotedStringContent API in SyncCurrentLocationHandler ( #27874 )
...
Co-authored-by: Anam Navied <annavied@microsoft.com >
2026-08-20 21:18:18 +00: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 Dongbo Wang
68437b2b6e
Improve validation for data fragments for PSRP frame headers ( #27871 )
...
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2026-08-20 16:59:34 -04:00
Anam Navied and Patrick Meinecke
2fab4a611a
Improve output file path determination for Invoke-WebRequest ( #27872 )
...
Co-authored-by: Patrick Meinecke <pmeinecke@microsoft.com >
2026-08-20 16:57:56 -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
olprod
ee4dd03440
Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2684623 ( #27841 )
2026-08-20 11:41:05 -07: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
olprod
b4984a6bf4
Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2674492 ( #27821 )
2026-08-13 09:59:37 -07:00
olprod
3ff3c711bf
Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2670960 ( #27802 )
2026-08-10 14:40:26 -07:00