Repository navigation
Commit 515a999
Porting Enable-PSRemoting and its Tests (#2671)
Fixes #1193 for most scenarios. The remaining scenario to be addressed is the Nano Server bring-up scenario. To continue supporting that scenario, I left the Install-PowerShellRemoting script in place.
This change
1. Ports Enable-PSRemoting and Disable-PSRemoting to PowerShell Core
2. Adds side-by-side PowerShell Core remoting support to the PSSessionConfiguration cmdlets and PSRemoting cmdlets.
3. Ports PSSessionConfiguration tests
This change also introduces a behavioral difference. The PSRemoting and PSSessionConfiguration cmdlets are now context-sensitive and only work for endpoints that match the PowerShell type. For example, Get-PSSessionConfiguration, when running in PowerShell Core, will only return PowerShell Core WinRM endpoints. It will only modify PowerShell Core WinRM endpoints and cannot be used to configure Windows PowerShell endpoints.1 parent e399669 commit 515a999
6 files changed
Lines changed: 1102 additions & 90 deletions
File tree
- src/System.Management.Automation
- engine
- remoting/commands
- resources
- test/powershell
- Modules/Microsoft.PowerShell.Core
- engine
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5963 | 5963 | | |
5964 | 5964 | | |
5965 | 5965 | | |
| 5966 | + | |
| 5967 | + | |
| 5968 | + | |
| 5969 | + | |
5966 | 5970 | | |
5967 | 5971 | | |
5968 | 5972 | | |
| |||
6013 | 6017 | | |
6014 | 6018 | | |
6015 | 6019 | | |
6016 | | - | |
6017 | | - | |
6018 | 6020 | | |
6019 | 6021 | | |
6020 | 6022 | | |
| |||
0 commit comments