tags:

views:

27

answers:

1

Is this possible ?, someone has suggested that I migth be able to do via ssh, essentially run a command on Unix pipe the output to a file get it back and then perform some action in the invoking Power Shell script.

A: 

Well, you can use tools like plink to execute a command via ssh on a remote server. Also you don't need to write the result to a file; you can simply assign it to a variable:

$output = plink ...
Joey
I've since found that a third party power shell extension called NetCmdlets allows you to do this: http://www.nsoftware.com/powershell/.
Chris