Thursday, July 13, 2006
But there are certain limitations:
1. You have to install cygwin, sshd and ssh client like putty (Well I can certainly live with that. Actually they are always on my hard drive).
2. No prompt
3. some Raw UI might not work
I am really looking forward to the new version of PowerShell with buildin Remoting function. According to Jeffrey Snover : Our plans for remoting are to leverage WS-MGMT the remoting protocol recently standardized through the DMTF.
If you try to run powershell scripts in cygwin command line you may expect a black screen if you have the following configuration :
- open the file c:\cygwin\cygwin.bat
- remove the "tty" from the line set "CYGWIN=binmode ntsec"
Then you should be able to execute powershell script in the local system but not yet with ssh.
Then to run Powershell scripts through SSH you have to open the ssh connection with the option "-f" :
> ssh -f my.server.com
or without interactive mode :
> ssh -f email@example.com "powershell mycommand.exe"
Hope it will help some of you !!
(I don't know how to pass the option -f to putty, so it doesn't work with putty)
Oes Tsetnoc | Semangat Mengembalikan Jati Diri Bangsa