Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

PowerShellTunnel - new on MSDN Code Gallery (app automation from P

Closed Thread
 
Thread Tools Display Modes
Old 03-12-2008   #1 (permalink)
Matthew Hobbs
Guest


 

PowerShellTunnel - new on MSDN Code Gallery (app automation from P

Hi folks,

I added a new PowerShell project (with a source code release) to MSDN Code
Gallery:

http://code.msdn.microsoft.com/PowerShellTunnel

The intro: "Host a PowerShell runspace and expose application objects as
ordinary PowerShell variables. Add a 'tunnel host', then use an ordinary
(local or remote) PowerShell console (or runspace) to 'tunnel' (connect using
WCF) to your application's runspace at runtime and script away."

Basically, the idea is you to open an ordinary PowerShell console and
'tunnel' into a running application and then invoke commands and scripts to
manipulate its objects (including piping in and out) - including tab
expansion (with a peculiarity). This is only for an application which is
deliberately hosting its own runspace and explicitly exposing certain objects
as PS variables.

Regular PS Remoting is for opening remote consoles, while PowerShellTunnel
tries to fill a gap, it is for connecting to an existing runspace hosted by
your app. PowerShellTunnel includes examples of how to do this and
documentation on code gallery site. WCF is used so in theory any distance to
the app is doable.

Have a go! It could be useful (with care) for diagnosis, testing, or any
kind of general-purpose application control. Let me know if there are more
elegant ways to do the same thing. The source code on code gallery is
functional but I imagine that people might want to take their own copy and
evolve it to their own ends.

Cheers,
-Matthew Hobbs

Old 03-13-2008   #2 (permalink)
Marco Shaw [MVP]
Guest


 

Re: PowerShellTunnel - new on MSDN Code Gallery (app automation fromP

Matthew Hobbs wrote:
Quote:

> Hi folks,
>
> I added a new PowerShell project (with a source code release) to MSDN Code
> Gallery:
>
> http://code.msdn.microsoft.com/PowerShellTunnel
Thanks for sharing! Something else to try out!

Marco
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel does not die using automation Terry Holland .NET General 11 07-07-2008 07:51 PM
Powershell OLE Automation? iActiveScript & C# issue PowerShell 3 05-11-2008 02:47 PM
Automation error 440 ERGOL Vista General 1 12-18-2007 02:45 AM
Excel automation V.Aks PowerShell 3 06-26-2007 08:32 AM
Automation classes... Help! Nick_Journals Avalon 0 02-02-2006 12:50 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50