Skip to content

Porting Enable-PSRemoting and its Tests - #2671

Merged
Dongbo Wang (daxian-dbw) merged 12 commits into
PowerShell:masterfrom
mirichmo:porting-enable-psremoting
Aug 8, 2017
Merged

Porting Enable-PSRemoting and its Tests#2671
Dongbo Wang (daxian-dbw) merged 12 commits into
PowerShell:masterfrom
mirichmo:porting-enable-psremoting

Conversation

@mirichmo

Copy link
Copy Markdown
Member

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 run 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.

@chunqingchen

Copy link
Copy Markdown
Contributor

Can you please resolve the conflict?

@mirichmo

Copy link
Copy Markdown
Member Author

At some point. I'm trying to find time to resolve the test failures.

@chunqingchen

Copy link
Copy Markdown
Contributor

cool !

@PaulHigin

Copy link
Copy Markdown
Contributor

Mike Richmond (@mirichmo) I am not sure how I missed this being assigned to me as a reviewer. But I will review it today.

@mirichmo

Copy link
Copy Markdown
Member Author

The tests aren't passing yet so it still needs some work. You are always welcome to take a look though

@PaulHigin

Copy link
Copy Markdown
Contributor

Mike Richmond (@mirichmo) I went through the code changes and made some minor changes in my fork. I also made some fixes in the test file. Overall I think this looks good and is the right way to implement WinRM based remoting enabling and endpoint management. Please see the patch file I sent you offline that has my minor changes.

@mirichmo

Copy link
Copy Markdown
Member Author

Dongbo Wang (@daxian-dbw) This is ready for merge now.

@iSazonov

Ilya (iSazonov) commented Aug 9, 2017

Copy link
Copy Markdown
Collaborator

This change also introduces a behavioral difference

It seems we need update docs - should we set the label?

@iSazonov Ilya (iSazonov) removed the Review - Needed The PR is being reviewed label Aug 9, 2017
@daxian-dbw Dongbo Wang (daxian-dbw) added the Documentation Needed in this repo Documentation is needed in this repo label Aug 9, 2017
@daxian-dbw

Copy link
Copy Markdown
Member

Ilya (@iSazonov) good point. I added the label to both this PR and the issue.

@mirichmo
Mike Richmond (mirichmo) deleted the porting-enable-psremoting branch August 9, 2017 16:47
@joeyaiello Joey Aiello (joeyaiello) removed Documentation Needed in this repo Documentation is needed in this repo labels Oct 15, 2018
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
Fixes PowerShell#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.