New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WinRM Plugin Registration and Modification #1193
Comments
How is Get-PSRemoting different than Get-PSSessionConfiguration? UPDATE: Is this expected? |
@alexandair ... that was left over from previous thinking. Cleaned it up .. cc @mirichmo |
Due to time constraints for the upcoming release, I implemented a partial solution to this issue. The script Install-PowerShellRemoting.ps1 resides in $PSHOME for Windows releases and will automatically register the included plugin as a WinRM endpoint for PS remoting. The script must be run with Administrator rights because it copies the plugin dll into a versioned directory within System32. This issue should remain open until I have time to implement the full solution. |
Will the cmdlet have options to choose between SSH and WinRM? |
This issue only applies to Windows + WinRM. Adding support for SSH should be handled through a separate issue and would be a feature request. Please go ahead and file an issue for it if you think it would be useful as part of the overall SSH user experience. |
I believe that most of this logic is already encapsulated in |
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.
The Nano Server Scenario (registering a different instance of PowerShell Core) is covered by the install script and that still exists. I filed #4528 to document this. |
It sounds like this is resolved, however on a new install of powershell 6.1.1 (on WS 2016) |
After installing PS 7.1 and in the installer checking "Enable Remoting" or whatever the option was I couldn't remote. Full details on this SO post here. I found a kind of solution which is giving the windows user I'm trying to connect with Full Control of Any help would be appreciated! |
Overview
On Windows, the PowerShell installer will not automatically enable receiving incoming requests. The feature shall be activated as a post-install step that requires Administrator-level authorization (due to the WinRM plugin's System32 placement requirement).
Changes Required
Enable-PSRemoting Changes
Cmdlet implementation should be changed to also
Get-PSSessionConfiguration should work with these changes.
The text was updated successfully, but these errors were encountered: