I have Windows Server 2003 with CopSSH installed on it ( Cygwin + sshd ). I would like to be able to run a PowerShell script via SSH session command and then use its output. Is there such a capability? How to do it?
Windows – How to run a PowerShell script from Cygwin SSH session
copsshcygwinpowershellsshwindows
Best Answer
Just invoke
powershell
with the relevant arguments and pipe it to wherever you want it? You need to make sure it's in thePATH
of course.