![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 |
| | #2 (permalink) | ||||||||||||
| Guest | Re: PowerShellTunnel - new on MSDN Code Gallery (app automation fromP Matthew Hobbs wrote:
Marco | ||||||||||||
| |
| |
![]() |
| 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 |