Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
General PowerShell
Sharing remote PS sessions
Last Post 11 Aug 2010 04:52 AM by
Marco Shaw (MVP)
. 3 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
rocku
New Member
Posts:2
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 Levy
PowerShell MVP, Admin
Veteran Member
Posts:1362
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
rocku
New Member
Posts:2
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)
Veteran Member
Posts:1642
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.
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Exchange Server
--Active Directory
--System Center Family
--Non-Microsoft Products
--SharePoint
--SQL Server
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
General PowerShell
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2