Commit Graph
2525 Commits
Author SHA1 Message Date
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
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
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
Anam NaviedandPatrick 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 RamchandaniandJustin 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 RamchandaniandJustin 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
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
PowerShell Team BotandAditya Patwardhan 6ae5efcd4a [master] Update branch for release (#27582)
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2026-06-10 15:02:31 -04: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
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 MeineckeandDongbo 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
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
Dongbo Wang 78e437c6f3 Fix the PSNativeCommandArgumentPassing test (#27057) 2026-03-18 15:32:15 -07: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
Jordan Borean 1965e059bc Fix up default value for parameters with the in modifier (#26785) 2026-02-18 11:39:53 -08:00
Yoshifumi 9d68a05ac3 Add comprehensive PSCustomObject tests for ConvertTo-Json (#26743) 2026-02-18 11:04:45 -08:00
Dongbo Wang 8f457fc714 Skip the flaky Update-Help test for the PackageManagement module (#26845) 2026-02-17 16:40:04 -05:00
CopilotandTravisEz13 6b8d724b03 Mark flaky Update-Help web tests as pending to unblock CI (#26796)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
2026-02-13 03:57:33 +00:00
Dongbo Wang 2e26e4b690 Update the Update-Help tests to use -Force to remove read-only files (#26780) 2026-02-12 11:50:16 -05:00
Copilot 42371b881c Add SubjectAlternativeName property to the Signature object returned from Get-AuthenticodeSignature (#26252) 2026-02-09 17:10:50 -08:00
Yoshifumi 664ac75f4f Add comprehensive depth and multilevel composition tests for ConvertTo-Json (#26744) 2026-02-09 16:43:02 -08:00
Yoshifumi 4382544127 Add comprehensive array and dictionary tests for ConvertTo-Json (#26742) 2026-02-06 09:41:03 -08:00
Yoshifumi dd4f2fecfa Add comprehensive scalar type tests for ConvertTo-Json (#26736) 2026-02-05 15:51:22 -08:00
Yoshifumi 8489f8fc34 Mark -NoTypeInformation as obsolete no-op and evaluate -IncludeTypeInformation on by value on Csv cmdlets (#26719) 2026-01-28 17:06:15 -05:00
Jordan Borean 7f9c7463f2 Support TargetObject position in ParserErrors (#26649) 2026-01-21 13:55:42 -05:00
Dongbo Wang 9bc47950e2 Add ValidateNotNullOrEmpty attribute to the -Property of Format-Table/List/Custom (#26552) 2026-01-12 10:47:41 -08:00
Yoshifumi d0d39c03b1 Fix Test-Json false positive errors when using oneOf or anyOf in schema (#26618) 2025-12-17 09:15:36 +00:00
Dongbo Wang b14cd0330c Fix the DSC test by skipping AfterAll cleanup if the initial setup in BeforeAll failed (#26621) 2025-12-16 12:07:14 -08:00
Dongbo Wang 592668bd0b Refactor the module path construction code to make it more robust and easier to maintain (#26565) 2025-12-12 09:43:08 -08:00