title: Powershell Session to one remote host then on to another
body: <p>Is there a way to use Powershell to remote onto one machine (let's called it hub) and then from within that session remote onto another (a "spoke")? I need to connect to the hub touchdown server in our VPN before I can connect on to another machine.</p>
  
  <p>Or is there another way to proxy the session via the hub machine?</p>
  
  <p>From within the session to the HUB I can create the new PSSession, but I get an error when trying to enter it:</p>
  
  <pre><code>[HUB]: PS C:\Users\idlemind\Documents&gt; New-PSSession remotehost.domain.com -Credential idlemind@domain.com
  
   Id Name            ComputerName    State         ConfigurationName     Availability
   -- ----            ------------    -----         -----------------     ------------
    1 Session1        remotehost.d... Opened        Microsoft.PowerShell     Available
  
  
  [HUB]: PS C:\Users\idlemind\Documents&gt; Enter-PSSession 1
  Enter-PSSession : You are currently in a Windows PowerShell PSSession and cannot use the Enter-PSSession cmdlet to enter another PSSession.
      + CategoryInfo          : InvalidArgument: (:) [Enter-PSSession], ArgumentException
      + FullyQualifiedErrorId : RemoteHostDoesNotSupportPushRunspace,Microsoft.PowerShell.Commands.EnterPSSessionCommand
  </code></pre>