Skip to content

Consistent way to enable PSRemoting #4528

Description

We have internally been referring to this as the "Nano Server Scenario" aka headless, remote-only remoting activation. The idea is that we need a way to register a non-running instance of PowerShell Core with WinRM. In Nano Server, you can create a remote session (New-PSSession)to the instance of Windows PowerShell running on the system. Once in that session (Enter-PSSession), you can unzip PowerShell Core on Nano Server to make it available for use. The only way to register the new instance of PowerShell Core as a WinRM endpoint is to run Install-PowerShellRemoting.ps1 from within the current Windows PowerShell remote session.

Enable-PSRemoting works to register the running instance of PowerShell Core with WinRM, but the script Install-PowerShellRemoting.ps1 is the only solution to this problem. We should consider building that functionality into a new cmdlet or an existing cmdlet to make it more permanent.

Environment data

Windows
Beta.5

Activity

  1. added
    WG-RemotingPSRP issues with any transport layer
    Area-SideBySiderelated to ability to run PS7 side-by-side with WinPS or different versions of PS7
    Issue-Enhancementthe issue is more of a feature request than a bug
    on Aug 8, 2017
  2. SteveL-MSFT commented on Jan 10, 2018

    @SteveL-MSFT
    Member

    Today Install-PowerShellRemoting.ps1 and Enable-PSRemoting overlap and create PSSessionConfigurations with slightly different names (PowerShell.v6.0.0 vs powershell.6.0.0). We remove Install-PowerShellRemoting.ps1 and add support for -PowerShellHome to Enable-PSRemoting and standardize on the configuration name (I prefer the latter myself).

  3. mirichmo commented on Jan 10, 2018

    @mirichmo
    MemberAuthor

    It was my original intent that the script and cmdlet should produce the same configuration name, so I consider divergence a bug. I prefer it without the "v" as well.

  4. changed the title [-]Add Support for Registering a Separate Instance of PowerShell Core for Remoting[/-] [+]Consistent way to enable PSRemoting[/+] on Jan 31, 2018
  5. SteveL-MSFT commented on Jan 31, 2018

    @SteveL-MSFT
    Member

    For this issue, it seems we have a couple of minor things:

    1. Add support for -PowerShellHome to Enable-PSRemoting, however, this makes it a bit more complicated to run on Windows IoT where you initially only have Windows PowerShell Core which won't have the updated Enable-PSRemoting.
    2. Fix Enable-PSRemoting endpoint name to not contain v
  6. SteveL-MSFT commented on Jun 20, 2018

    @SteveL-MSFT
    Member

    I think what we have is sufficient, so closing this item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-SideBySiderelated to ability to run PS7 side-by-side with WinPS or different versions of PS7Issue-Enhancementthe issue is more of a feature request than a bugOS-WindowsResolution-FixedThe issue is fixed.WG-RemotingPSRP issues with any transport layer

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions