Respect -UseWindowsPowerShell:$false in New-PSSession by yotsuda · Pull Request #26469 · PowerShell/PowerShell
daxian-dbw
added
the
CL-General
label
- Adopt { ... } | Should -Not -Throw pattern as suggested by @mklement0
- Verify Transport is 'WSMan' (not 'Process') for -UseWindowsPowerShell:$false
- Simpler test that is independent of default PowerShell edition/version
1. Rename $session1 to $sessionWithTrue for better symmetry with $sessionWithFalse 2. Add null check for $sessionWithFalse to match the pattern used in Test 1 These changes improve test code readability and robustness.
yotsuda
deleted the
fix/new-pssession-usewindowspowershell-26464
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters