Linked by Thom Holwerda on Tue 11th Jul 2006 12:02 UTC, submitted by influx
Windows "One of the first things that an admin wants to do with PowerShell ['Monad'] is run remotely. To do this securely, you must encrypt your data. SSH has been the proven way to do this. So the question becomes, how do I connect SSH and PowerShell together? With a little bit of kludge, it is possible."
Order by: Score:
lol
by Duffman on Tue 11th Jul 2006 12:35 UTC
Duffman
Member since:
2005-11-23

I always forgot that windows doesn't come with sshd...

Reply Score: 2

RE: lol
by el3ktro on Tue 11th Jul 2006 12:49 UTC in reply to "lol"
el3ktro Member since:
2006-01-10

Does PowerShell have any native remote capabilities? If I have two computers with PowerShell installed, can I connect them SSH-like with built-in Windows tools?

Tom

Reply Score: 1

RE[2]: lol
by naelurec on Tue 11th Jul 2006 13:58 UTC in reply to "RE: lol"
naelurec Member since:
2006-02-15

I noticed a 3rd party project called "PowerShell Remoting".. Another site ( http://www.redmonk.com/cote/archives/2006/06/teched_2006_pow.html )mentions remote capabilities (similar to what we expect of SSH) to be available in the 1.1 release. I suppose for now the idea is to use RDC and open a terminal?!?

Reply Score: 1

RE[2]: lol
by n4cer on Tue 11th Jul 2006 19:54 UTC in reply to "RE: lol"
n4cer Member since:
2005-07-06

Remoting is a feature scheduled for a later release of PowerShell (v2, IIRC).

PowerShell is initially being staged across 3 releases, with the first aimed at standardizing the language and providing a stable, secure base supporting common scenarios. Subsequent releases will add other features like remoting and UI integration. There was a document on MSDN that provided some details on this, but I can't find it currently.

Remote execution is currently handled by the cmdlets/scripts (as is done in Exchange 2007 or WMI).

For file access, you can login to the remote machine using "net use" or similar (if you don't already have access), then "cd" to the remote share (e.g., "cd \\computername\sharename"). Powershell isn't needed on the remote machine for these scenarios.

For scenarios such as executing a remote PowerShell instance, you'll need to use TS/RDP or similar for now.

Edited 2006-07-11 19:56

Reply Score: 3

another reason to skip Vista
by chrish on Tue 11th Jul 2006 12:56 UTC
chrish
Member since:
2005-07-14

Something like this really shouldn't require Cygwin. I was going to call it a kludge, but it isn't really... you're just (eventually) running PowerShell like you would any normal shell.

NT/2000/XP have come with an unsecured telnetd for years, you'd think "the most secure Windows ever!" would come with sshd.

- chrish

Reply Score: 5

RE: another reason to skip Vista
by KenJackson on Tue 11th Jul 2006 19:41 UTC in reply to "another reason to skip Vista"
KenJackson Member since:
2005-07-18

this really shouldn't require Cygwin.

True. But Cygwin is so good that I consider it essential for any Windows PC I must use. Which makes me wonder, since Cygwin delivers Bash via SSH from a Windows PC--why bother with the PowerShell at all?

Reply Score: 2

glarepate Member since:
2006-01-04

... why bother with the PowerShell at all?

Monad is an object-oriented shell. It will do things that BASH won't. Of course you may wish it didn't do some of those things, but it's still a work in progress. (o;

Reply Score: 2

OpenSSH for Windows
by chavv on Tue 11th Jul 2006 14:10 UTC
chavv
Member since:
2005-07-06
GNU version of Monad.
by SpasmaticSeacow on Tue 11th Jul 2006 14:34 UTC
SpasmaticSeacow
Member since:
2006-02-17

I understand the Mono team can't use the name "Monad" though it's a natural extension of Mono. Therefore, I prose the GNU/GPL/Mono version of PowerShell be called Gonad and SuperpowerShell respectively. If they've the nuggets, that is.

Reply Score: 4

RE: GNU version of Monad.
by smitty_one_each on Tue 11th Jul 2006 15:26 UTC in reply to "GNU version of Monad."
smitty_one_each Member since:
2005-07-07

PowerShallot. Because it makes you cry to use it.

Reply Score: 1

RE[2]: GNU version of Monad.
by Sphinx on Tue 11th Jul 2006 19:56 UTC in reply to "RE: GNU version of Monad."
Sphinx Member since:
2005-07-09

Now that was funny.

Reply Score: 1

RE: GNU version of Monad.
by Sphinx on Tue 11th Jul 2006 19:58 UTC in reply to "GNU version of Monad."
Sphinx Member since:
2005-07-09

Actually wouldn't the correct spelling be, "gnad".

Reply Score: 1

v Totally uneeded and unusable
by ChrisA on Tue 11th Jul 2006 14:37 UTC
SpasmaticSeacow Member since:
2006-02-17

As I understand from the various articles about Monad/PowerShell, it appears to be a functional rip-off of the old Amiga CLI. Namely, the object functionality is similar to some of the ARexx functionality (not syntactically, but functionally).

Reply Score: 1

RE: Totally uneeded and unusable
by celt on Tue 11th Jul 2006 20:11 UTC in reply to "Totally uneeded and unusable"
celt Member since:
2005-07-06

After reading this, I was set for a good rant on the lack of MS platform remote administrative capabilities - or lack thereof.

However, ChrisA beat me to it...well said.

Windows, as a server or desktop, is the most incompetent sea of code ever written.

Reply Score: 0

Is this really required?
by JCooper on Tue 11th Jul 2006 15:41 UTC
JCooper
Member since:
2005-07-06

A lot of the power of the .net framework (and hence Monad/powershell) is that it has inbuilt support for WMI, Remote Management (processes / services / users & groups / disk volumes /tasks etc) ... hence you run a script locally that queries a remote machine - the same you do with vbscript? The WMI etc services on the target computer return the information.

Or have I missed the point?

Reply Score: 2

RE: Is this really required?
by what on Tue 11th Jul 2006 16:08 UTC in reply to "Is this really required?"
what Member since:
2006-01-04

You don't use wmi to list the contents of a folder, for example...

Reply Score: 1

The right perspective
by KenJackson on Tue 11th Jul 2006 16:00 UTC
KenJackson
Member since:
2005-07-18

I can type upwards to 100 words a minute, anytime I have to move my hands off the home row to the mouse, I am losing productivity.

Yes! This is the right perspective and the right issue. I get so very tired of the assumption that a GUI will somehow make me more productive.

Anytime I have to stream video, I am wasting bandwidth.

Right again.

Reply Score: 2

RE: The right perspective
by Sphinx on Tue 11th Jul 2006 20:00 UTC in reply to "The right perspective"
Sphinx Member since:
2005-07-09

Nice to hear the voice of sanity every once in a while, thanks.

Reply Score: 1

IPython
by butters on Wed 12th Jul 2006 04:36 UTC
butters
Member since:
2005-07-08

PowerShell might eventually become a useful tool for Windows administration, but it's by no mean revolutionary. For example, I've really enjoyed playing around with IPython and its pysh profile. It's essentially an interactive shell that lets you mix Python code and your default shell commands together. It makes interactively creating, saving, editing and running python scripts so seamless that I find myself amassing quite a collection of little timesavers. It's very much a work in progress, but then again so is PowerShell, and it seems like IPython is way more useful at the moment.

Yes, it runs on Windows and Mac OSX, too.

Reply Score: 1

yet again henry's proved correct
by bailey86 on Wed 12th Jul 2006 07:00 UTC
bailey86
Member since:
2005-10-14

Those who do not understand Unix are condemned to reinvent it, poorly.

-- Henry Spencer Usenet signature, November 1987

Reply Score: 1

RE: yet again henry's proved correct
by celt on Wed 12th Jul 2006 11:35 UTC in reply to "yet again henry's proved correct"
celt Member since:
2005-07-06

ha...I have to steal that one.

Reply Score: 1

RE: yet again henry's proved correct
by gonzo on Wed 12th Jul 2006 17:33 UTC in reply to "yet again henry's proved correct"
gonzo Member since:
2005-11-10

Those who do not understand Unix are condemned to reinvent it, poorly.

Those that do not undestand Monad (PowerShell) think it's like Unix shells.

Monad works with objects. BIG difference and much better approach, IMHO.

Reply Score: 2

gg3po Member since:
2005-07-06

Those that do not undestand Monad (PowerShell) think it's like Unix shells.

The OP didn't say it was "like Unix shells." He implied it was like a poorly implemented UNIX shell.

Monad works with objects. BIG difference...

Again, the OP appears to have accounted for this with the use of the qualifying word "poorly".

Reply Score: 1

gonzo Member since:
2005-11-10

Obviously, both of you do not understand that Monad is not like Unix shell at all. Thus, it can not be "like poorly (or 'like well') implemented Unix shell."

Another thing is, what is so poor about Monad?

I've been using it for almost six months now and it simply rocks. Maybe you should give it a try..

Reply Score: 2

troc Member since:
2006-05-01

I would give it a go, but it seems to be designed only to run under very specific ---some might say limited--- environments.

Reply Score: 1

gonzo Member since:
2005-11-10

Usually, people that say that ("..limited environments..") -- it is the same people that think Monad is "poorly implemented Unix shell".

:)

OK, I suppose you use Unices and I don't see that you'll miss PowerShell (Monad) there simply because Unix has its ways of doing things in shell (text goes through pipes) and everything is done that way already while Monad does it differently (objects go through pipes).

On Windows, it will make a huge difference especially because Microsoft is (slowly) going to support PowerShell with all its producs (for example, Exchange beta now fully supports Monad. You can do anything from Monad. Actually, Exchange GUI, IIRC, uses Monad to perform all tasks).

One last thing, if on my Windows I can run both bash (via Services for Unix, Cygwin, etc) and Monad, while one can not run both on, for example Linux, then I really have to ask --- which environment is more limited?

Reply Score: 1