Commit Graph
546 Commits
Author SHA1 Message Date
Justin ChungandCopilot 7901fec9bd Move MSIX configuration coverage to elevated tests
Keep xUnit focused on pure three-scope merge and union behavior. Move the real LocalMachine write, removal, and ACL checks into the existing elevated execution-policy Pester suite, where the test runs only with MSIX package identity.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-31 12:22:13 -05:00
Justin ChungandCopilot 638173942c Test MSIX machine configuration in package context
Remove the trivial path-composition overload and unit tests. Expose package identity through InternalTestHooks and add an elevated MSIX-gated Pester test that verifies the real LocalMachine ProgramData write and inherited ACL boundaries.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-31 11:35:32 -05:00
Justin ChungandCopilot 469e39b3d5 Align MSIX configuration with MachineFolder model
Keep PSHOME as immutable product defaults while resolving the writable PFN-isolated ProgramData path in Utils. Redirect AllUsers writes, preserve policy and preference merge semantics, and secure the manually provisioned hierarchy without changing non-MSIX or experimental-feature behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-29 13:12:19 -05:00
Justin ChungandCopilot 3d28915fff Restore experimental feature cmdlets
Keep Enable-ExperimentalFeature and Disable-ExperimentalFeature aligned with master while retaining the MSIX configuration changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-29 10:11:06 -05:00
Justin ChungandCopilot 8fc58754d7 Scope system configuration to MSIX
Remove the experimental-feature mutation cmdlets while preserving discovery.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-28 15:43:06 -05:00
Justin Chung 381db70a0f Merge branch 'master' into relocSystemConfig 2026-07-28 14:54:41 -05:00
Justin ChungandCopilot 21ef653ff0 Use package-aware ProgramData for system configuration
Keep immutable product defaults in PSHOME while resolving writable machine configuration from ProgramData, isolated by package family for MSIX. Apply secure Windows ACLs, preserve policy and preference merge semantics, and remove Get-PowerShellConfiguration.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-27 16:15:28 -05: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
Justin Chung 9311457b6a Fix preview build test failures 2026-05-28 13:07:18 -05:00
Justin Chung a8d65d320d Address Copilot fixes thrid 2026-05-28 10:10:27 -05:00
Justin Chung 5252a123b4 Address copilot comments second 2026-05-27 12:42:51 -05:00
Justin Chung 5ff044a4b6 Fix xUnit test configuration to use temp directory for system config location. 2026-05-27 09:53:14 -05:00
Justin Chung 7a3dbade57 Address copilot comments 2026-05-26 16:46:08 -05:00
Justin Chung 8ef8ae1138 Move AllUsers config out of $PSHOME and add Get-PowerShellConfiguration cmdlet 2026-05-26 16:20:04 -05: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
Jordan Borean 1965e059bc Fix up default value for parameters with the in modifier (#26785) 2026-02-18 11:39:53 -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
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
Copilot 2e7765eef1 Fix $PSDefaultParameterValues leak causing tests to skip unexpectedly (#26602)
This fixes test isolation issues where six test files were leaking $PSDefaultParameterValues["It:Skip"] settings to subsequent tests, causing widespread test skipping on Linux. The fixes address two distinct patterns: using .Remove() which doesn't restore the original state (4 files), and imbalanced Push-DefaultParameterValueStack/Pop-DefaultParameterValueStack calls (2 files).
2025-12-12 09:26:46 +05:00
Yoshifumi 7f92d588fa Add ToRegex method to WildcardPattern class (#26515) 2025-12-10 23:21:32 +05:00
Dongbo Wang eb2ead439a Fix formatting to properly handle the Reset VT sequences that appear in the middle of a string (#26424) 2025-11-24 14:38:23 -08:00
Dongbo Wang 9ee3c61c26 Close pipe client handles after creating the child ssh process (#26491) 2025-11-24 20:05:03 +00:00
yotsuda e81985d8f2 Respect -UseWindowsPowerShell:$false in New-PSSession (#26469) 2025-11-21 22:50:32 +05:00
Dongbo Wang 943257b247 Make some experimental features stable (#26348)
The following experimental features are made stable:
- PSNativeWindowsTildeExpansion
- PSRedirectToVariable
- PSSubsystemPluginModel
2025-10-30 14:26:03 -07:00
Jordan Borean af26292a7a Add PSApplicationOutputEncoding variable (#21219)
Adds the $PSApplicationOutputEncoding variable that can be used to control the encoding PowerShell uses when reading the raw bytes to a string of an external application.
2025-10-21 05:13:30 +00:00
xtqqczze a10ff105c9 Fix SA1028: Code should not contain trailing whitespace. Part 1. (#26203) 2025-10-16 12:58:28 +05:00
Jorge Suarez 26bb188c8b Improve ValidateLength error message consistency and refactor validation tests (#25806) 2025-10-13 11:55:20 +05:00
xtqqczze d418ffe84c Make some tests less noisy on failure (#26035) 2025-09-11 13:55:36 -07:00
Patrick Meinecke c5f2446e69 Suppress false positive PSScriptAnalyzer warnings in tests and build scripts (#25864) 2025-08-19 11:51:38 +05:00
Jordan Borean 4415386172 Improve the $using expression support in Invoke-Command (#24025)
Always use the v5.1 `$using:` logic when dealing with any connection type that is not based on the `WSManConnectionInfo`. This allows the caller to use the more advanced `$using` features like variables with special names, having `$using` vars inside sub scopes, and more. `WSMan` based connections might still communicate with older versions but as the oldest supported version is v3 on Server 2012. We don't need to keep the default as v2 (which has been deprecated) to support some of the newer features.
2025-08-04 16:31:30 -07:00
Aditya Patwardhan 07dfab2277 Fix updatable help test for new content (#25819) 2025-08-04 14:04:56 -07:00
Stéphane BARIZIEN a993992298 Adding hex format for native command exit codes (#21067) 2025-07-31 08:23:20 +05:00
GameMicrowave fcc1833963 Treat -Target as literal in New-Item (#25186) 2025-05-12 16:22:29 +05:00
Dongbo Wang 52150fd8a7 Add more tests for PSForEach and PSWhere methods (#25519) 2025-05-09 11:15:03 -07:00
(Havox) 1b786d2d89 Add support for thousands separators in [bigint] casting (#25396) 2025-05-08 17:10:33 +05:00
Staffan Gustafsson 9cbbb8ff32 Add PSForEach and PSWhere as aliases for the PowerShell intrinsic methods Where and Foreach (#25511) 2025-05-05 17:13:02 -07:00
Dongbo Wang f53865d1a4 Fix the isolated module test that was disabled previously (#25420) 2025-05-03 16:51:51 -07:00
MartinGC94 0c96975d1e Exclude outvariable assignments within the same CommandAst when inferring variables (#25224) 2025-03-26 18:00:46 +00:00
MartinGC94 dea739cf99 Fix infinite loop in variable type inference (#25206) 2025-03-26 07:53:08 +05:00
MartinGC94 0ca17fdacd Fix type inference of parameters in classic functions (#25172) 2025-03-18 13:23:49 +05:00
MartinGC94 1edd258e3b Improve assignment type inference (#21143) 2025-03-18 09:48:11 +05:00
MartinGC94 becdd61b3c Improve variable type inference (#19830) 2025-03-13 10:04:02 +00:00
MartinGC94 33ed509ca4 Add type inference for functions without OutputType attribute and anonymous functions (#21127) 2025-02-28 17:48:59 +00:00
MartinGC94 6fbd8ba1dd Handle type inference for redirected commands (#21131) 2025-02-28 04:20:25 +00:00
MartinGC94 f47b14e7ff Improve the type inference for binary expressions (#25030) 2025-02-20 10:39:29 +05:00
MartinGC94 fd85f6c35a Use types from both sides of the pipeline chain for the type inference (#25031) 2025-02-18 05:44:28 +00:00