header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Sharing remote PS sessions
Last Post 11 Aug 2010 04:52 AM by Marco Shaw (MVP). 3 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
rockuUser is Offline
New Member
New Member
Posts:2
Avatar

--
11 Aug 2010 02:11 AM
    Hi,
    is it possible to share remote powershell sessions between powershell processes? For example, I open one powershell console and establish a remote session to host foo. Then I open another PS console and I would like to enter the session to foo created on the first console. Can this be done?
    Shay LevyUser is Offline
    PowerShell MVP, Admin
    Veteran Member
    Veteran Member
    Posts:1362
    Avatar

    --
    11 Aug 2010 03:40 AM
    No you can't do that, not for remoting sessions or background jobs.

    Shay Levy
    Windows PowerShell MVP
    http://PowerShay.com
    PowerShell Community Toolbar
    Twitter: @ShayLevy
    rockuUser is Offline
    New Member
    New Member
    Posts:2
    Avatar

    --
    11 Aug 2010 04:22 AM
    Thanks for the answer.

    I am developing a system for managing multiple Exchange 2010 servers in separated domains. I have a single windows computer which acts as an administration host. It hosts a custom Perl script which works as an RPC-like server, from which a PS script is launched which connects to remote Exchange machines through WinRM, does the task and returns results. Problem is this takes a lot of time (approximately 10 seconds for each request), most of which is spent on establishing a session to the remote host (about 7-8 secs). So I thought of keeping a constant pool of open sessions to each remote host and just passing them to the RPC script when needed. Could someone propose a better solution to speed it up, or suggest how to best implement my solution?
    Marco Shaw (MVP)User is Offline
    Veteran Member
    Veteran Member
    Posts:1642
    Avatar

    --
    11 Aug 2010 04:52 AM
    Shay is correct that there's no built-in way to accomplish this.

    However, I do want to get around to testing this 3rd party (unsupported) add-on in a scenario that you describe:
    http://code.msdn.microsoft.com/PowerShellTunnel
    Marco

    *Microsoft MVP - Windows PowerShell
    https://mvp.support.microsoft.com/profile/Marco.Shaw
    *Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
    *Blog - http://marcoshaw.blogspot.com
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer