Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Microsoft PowerShell RC1

Posted by ScuttleMonkey on Tue Apr 25, 2006 04:48 PM
from the new-syntax-to-learn dept.
rst+ack writes "Microsoft has released RC1 version of PowerShell the .NET-based shell with perl-like syntax previously known as Monad or MSH. PowerShell (PS) has been covered a few times on Slashdot. Contrary to cmd.exe and Unix/Linux shells it operates on objects, not text when passing data between scripts and executables. Easy access to .NET classes allows users to create quite advanced solutions in short time. PS won't be shipped with Vista or Windows Server 2007 but it will debut with Exchange 12."

Related Stories

[+] Monad Shell Removed From Vista 330 comments
hggs writes "According to Stephen Toulouse at Microsoft, because of the possible virus threat that targets Monad the shell will not be included in Windows Vista. CNet is reporting that, even though Monad is not to be included on Vista, it will be included on a major server operating system for servers from Microsoft. Codenamed Longhorn server, that edition is due out by 2007." Update: 08/06 04:45 GMT by Z : As Mr. Toulouse states here, the submission here adds one and one and gets three. Monad hasn't been in Vista for about two months. The CNet article is clarifying a previous report stating that Monad could potentially be the first source of viruses in an OS which incorporated it. The interesting news about Monad in the server edition was obscured by the factually incorrect submission, which at first blush seemed to make sense. Mea Culpa.
[+] Developers: Microsoft Releases A New Monad Command Shell Beta 126 comments
Watercooler Warrior writes "Slashdot originally broke the news that a new Microsoft command shell was in the works when a reader noticed a suspicious job posting by Microsoft India. Today Microsoft released the first really usable version of the shell (codenamed Monad) to beta testers - and anyone who carefully reads the WinHEC slides about Monad will find how to join the beta and get a peek at it. The shell looks like a bunch of old-school Unix and Perl hackers were given free rein to do what they wanted with the .NET framework, and from what is known about the backgrounds of the Monad developers this is probably pretty close to the truth."
[+] Next-gen Windows Command Line Shell Now in Beta 668 comments
Suddenly_Dead writes "Microsoft's new command line shell, MSH or Monad, has entered the beta phase. Channel9 Wiki has information on how to download this (complete with Guest ID), and other related info."
This discussion has been archived. No new comments can be posted.
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • can you? (Score:4, Funny)

    by killjoe (766577) on Tuesday April 25 2006, @04:51PM (#15200581)
    Can you resize the window and copy and paste easily into the windows. If so it's already 10 times better then CMD.EXE.
    • Re:can you? by Philip K Dickhead (Score:1) Tuesday April 25 2006, @04:53PM
      • Re:can you? by Opportunist (Score:3) Tuesday April 25 2006, @05:04PM
        • Re:can you? by Thud457 (Score:1) Tuesday April 25 2006, @05:24PM
          • Re:can you? by moro_666 (Score:3) Wednesday April 26 2006, @01:16AM
          • 1 reply beneath your current threshold.
      • Re:can you? by somersault (Score:2) Wednesday April 26 2006, @10:47AM
        • Re:can you? by Philip K Dickhead (Score:1) Wednesday April 26 2006, @11:36AM
          • Re:can you? by somersault (Score:2) Wednesday April 26 2006, @12:01PM
    • Re:can you? (Score:4, Informative)

      by Vicegrip (82853) on Tuesday April 25 2006, @04:55PM (#15200626)
      (Last Journal: Tuesday August 03 2004, @04:45PM)
      You can do both with cmd.exe ... check the properties of the window and adjust the buffer sizes to your taste. I use 132X9999. Turn on Quick Edit Mode for right-click paste actions. And, if you want, you can also drag a folder from Explorer into the window to copy-paste the path to the command line.
      [ Parent ]
      • Re:can you? by Otter (Score:3) Tuesday April 25 2006, @05:14PM
      • Re:can you? by pla (Score:2) Tuesday April 25 2006, @05:17PM
        • Re:can you? by drinkypoo (Score:3) Tuesday April 25 2006, @05:45PM
          • Re:can you? by Tim Browse (Score:1) Tuesday April 25 2006, @06:41PM
            • Re:can you? by drinkypoo (Score:1) Tuesday April 25 2006, @07:02PM
              • Re:can you? by B3ryllium (Score:2) Tuesday April 25 2006, @07:30PM
              • Re:can you? by jericho4.0 (Score:1) Wednesday April 26 2006, @03:10AM
              • Re:can you? by Tim Browse (Score:2) Wednesday April 26 2006, @03:43PM
              • Re:can you? by drinkypoo (Score:2) Wednesday April 26 2006, @11:23AM
              • Re:can you? by drinkypoo (Score:1) Wednesday April 26 2006, @03:56PM
              • Re:can you? by Tim Browse (Score:2) Wednesday April 26 2006, @04:04PM
          • Re:can you? by BrynM (Score:2) Tuesday April 25 2006, @10:51PM
            • Re:can you? by drinkypoo (Score:2) Wednesday April 26 2006, @11:41AM
            • Re:can you? by nuzak (Score:2) Wednesday April 26 2006, @12:15PM
        • Re:can you? by leenks (Score:1) Tuesday April 25 2006, @06:49PM
          • Re:can you? by pla (Score:2) Tuesday April 25 2006, @07:09PM
      • Re:can you? by msmercenary (Score:1) Tuesday April 25 2006, @05:25PM
        • Re:can you? by trandism (Score:1) Wednesday April 26 2006, @05:05PM
      • Re:can you? by Excelsior (Score:3) Tuesday April 25 2006, @05:45PM
        • Re:can you? by nmb3000 (Score:3) Tuesday April 25 2006, @05:52PM
        • Re:can you? (Score:5, Funny)

          You can do both with cmd.exe ... check the properties of the window and adjust the buffer sizes to your taste.

          Increasing the buffer size still doesn't let you resize the window horizontally, although it does allow you to increase the size vertically. It's a fixed width window, which really stinks.


          It certainly isn't what it should be... But, if you go to properties, and go to the layout tab, then change *both* the horizontal buffer size and the the horizontal window size, it works fine. It's just buried on the third tab of the not-very-obvious properties window -- don't confuse it with the buffer size setting on the first tab, as this is unrelated.

          Now, why in the name of god they don't just let you resize it with the mouse like every other Windows window, and every other terminal emulator like kterm/gterm... I have no god damned idea. But, it is there, pointlessly buried. Third tab of the non-obvious properties window, where you have to change two different settings by hand. People keep asking me why I don't prefer Windows. They keep insisting, "Isn't Windows easier to use?" Egad.
          [ Parent ]
        • Quick resize (Score:4, Informative)

          by Craig Davison (37723) on Tuesday April 25 2006, @07:26PM (#15201555)
          For 90 cols x 60 lines, try
          mode 90,60

          [ Parent ]
        • Re:can you? by billcopc (Score:1) Tuesday April 25 2006, @09:13PM
          • Re:can you? by Excelsior (Score:2) Tuesday April 25 2006, @09:40PM
            • Re:can you? by billcopc (Score:1) Wednesday April 26 2006, @09:31PM
            • 1 reply beneath your current threshold.
        • 1 reply beneath your current threshold.
      • Re:can you? by Anonymous Coward (Score:1) Tuesday April 25 2006, @06:35PM
        • 1 reply beneath your current threshold.
      • Re:can you? by beemishboy (Score:1) Tuesday April 25 2006, @06:47PM
        • cygwin & rxvt by kybred (Score:2) Tuesday April 25 2006, @08:13PM
        • Re:can you? by moonbender (Score:2) Wednesday April 26 2006, @03:26AM
      • Re:can you? (Score:5, Informative)

        by Fareq (688769) on Tuesday April 25 2006, @06:57PM (#15201380)
        while we're giving out CMD.EXE tips, try this:

        enter a few commands
        then press F7 for surprising results
        [ Parent ]
        • Re:can you? by pumpkinescobarsof2 (Score:1) Tuesday April 25 2006, @11:39PM
        • Re:can you? by Scarletdown (Score:2) Wednesday April 26 2006, @02:09AM
        • Re:can you? by palad1 (Score:2) Wednesday April 26 2006, @02:54AM
        • Re:can you? by jericho4.0 (Score:2) Wednesday April 26 2006, @03:14AM
          • Re:can you? by Anonymous Coward (Score:1) Wednesday April 26 2006, @03:24AM
          • Re:can you? by Library Spoff (Score:3) Wednesday April 26 2006, @03:51AM
          • Re:can you? by somersault (Score:2) Wednesday April 26 2006, @11:36AM
        • 2 replies beneath your current threshold.
      • Re:can you? by Doppler00 (Score:1) Tuesday April 25 2006, @07:47PM
      • Re:can you? by Bob of Dole (Score:2) Tuesday April 25 2006, @08:38PM
        • Re:can you? by trandism (Score:1) Wednesday April 26 2006, @05:09PM
      • Re:can you? by oc255 (Score:1) Wednesday April 26 2006, @10:28AM
      • Re:Command-completion as well ... by EvanED (Score:2) Wednesday April 26 2006, @02:28AM
      • 1 reply beneath your current threshold.
    • Re:can you? by eMartin (Score:3) Tuesday April 25 2006, @04:57PM
      • Re:can you? by bheer (Score:3) Tuesday April 25 2006, @05:09PM
        • Re:can you? by Flimzy (Score:1) Tuesday April 25 2006, @05:28PM
          • Re:can you? by WeblionX (Score:1) Tuesday April 25 2006, @05:40PM
            • Re:can you? by Flimzy (Score:1) Tuesday April 25 2006, @05:43PM
            • Re:can you? by 6th time lucky (Score:1) Thursday April 27 2006, @03:43AM
            • 1 reply beneath your current threshold.
      • Re:can you? by Opportunist (Score:3) Tuesday April 25 2006, @05:13PM
      • Re:can you? by amRadioHed (Score:1) Tuesday April 25 2006, @06:43PM
    • Re:can you? by cnettel (Score:2) Tuesday April 25 2006, @05:05PM
      • Re:can you? by killjoe (Score:2) Tuesday April 25 2006, @07:13PM
    • Re:can you? by Z34107 (Score:2) Tuesday April 25 2006, @05:36PM
      • Re:can you? by DA-MAN (Score:2) Tuesday April 25 2006, @09:17PM
        • Re:can you? by Erik Johnsson (Score:1) Wednesday April 26 2006, @10:06AM
    • That's the terminal... by Corngood (Score:2) Tuesday April 25 2006, @10:23PM
    • Re:can you? by Durandal64 (Score:2) Tuesday April 25 2006, @10:39PM
      • Re:can you? by amliebsch (Score:2) Tuesday April 25 2006, @11:16PM
      • Re:can you? by daivzhavue (Score:1) Wednesday April 26 2006, @08:32AM
    • 2 replies beneath your current threshold.
  • Text (Score:4, Funny)

    by pete-classic (75983) <hutnick@gmail.com> on Tuesday April 25 2006, @04:51PM (#15200584)
    (http://hutnick.com/ | Last Journal: Monday March 12 2007, @09:15PM)
    Contrary to cmd.exe and Unix/Linux shells it operates on objects, not text when passing data between scripts and executables.


    Why would you want to use an arbitrary, difficult to debug format like text when you could use .NET objects?!

    -Peter
    • Re:Text by tomstdenis (Score:1) Tuesday April 25 2006, @04:53PM
      • Re:Text (Score:5, Insightful)

        by powerlord (28156) on Tuesday April 25 2006, @05:01PM (#15200674)
        Well ... to take the position of "Devil's Advocate" for a minute, if they just extended bash to have C# scripting, then you'd have lots of people on this forum yelling how they are perverting the standard and that this is just aploy for them to embrace and extend the existing shell language.

        Look at it from MS's perspective:
        1) They know they need a shell like language to handle sys admin type functions.
        2) They've just put a lot of effort into .Net
        3) Most of the MS Admins out there believe VB is the tool of choice.

        Given those suppositions (feel free to argue about their reality, but remember that I'm discussing it from MS's viewpoint), a scripting language that fullfills (1), takes advantage of (2) and leverages (3) seems like a no brainer, even for them.

        Of course, considering that there are .Net bindings for Perl, that may be an even better choice for a scripting language.
        [ Parent ]
        • Re:Text by tomstdenis (Score:3) Tuesday April 25 2006, @05:19PM
          • Re:Text by SpryGuy (Score:3) Tuesday April 25 2006, @05:25PM
            • Re:Text by tiocsti (Score:2) Tuesday April 25 2006, @06:06PM
              • Re:Text by Octorian (Score:3) Tuesday April 25 2006, @10:05PM
              • VMSNT connection by ChipMonk (Score:2) Friday April 28 2006, @11:44PM
          • Re:Text by cnettel (Score:2) Tuesday April 25 2006, @05:26PM
          • Re:Text (Score:5, Insightful)

            by shmlco (594907) on Tuesday April 25 2006, @05:29PM (#15200876)
            (http://www.isights.org/)
            "My problem is how blatantly incompatible they do everything."

            And his point was that, within the Windows environment, they ARE compatible, staying with their existing libraries, tools, and languages. Given that perspective, importing yet another language and toolset from Unix would be the incompatibility.

            Why does the entire world have to look like a scripting language from an OS designed four decades ago?
            [ Parent ]
            • Re:Text by ConceptJunkie (Score:2) Tuesday April 25 2006, @05:38PM
              • Re:Text by admdrew (Score:2) Tuesday April 25 2006, @07:06PM
            • Re:Text (Score:4, Insightful)

              "Why does the entire world have to look like a scripting language from an OS designed four decades ago?"

              Because computers input/output information just like they did decades ago. Unix is simple in the sense that everything can input and output data via text streams. Even the drivers in /dev and operating system internals in /proc can both recieve and output data via text from the shell!

              Windows is great for grandma, but in an enterprise server room or for a power user its insufficient.

              Why can't you manipulate the data inside the computer as easy as you could with unix? Why do I have to know x,y cordinate to click mouse buttons when running batch jobs for Windows programs?

              PowerShell is a great idea and its about damn time. Since Windows uses objects it makes sense to use them as arguments as well as text and the WMI which reminds me of sysctrl and /proc in unix.

              Its really all the same to me and just another implementation of the shell from unix.

              [ Parent ]
              • Re:Text by Octorian (Score:3) Tuesday April 25 2006, @10:08PM
              • Re:Text by shmlco (Score:2) Wednesday April 26 2006, @12:58AM
              • Re:Text by sg_oneill (Score:2) Wednesday April 26 2006, @03:41AM
              • Re:Text by sg_oneill (Score:2) Wednesday April 26 2006, @03:44AM
              • Re:Text by richlv (Score:2) Wednesday April 26 2006, @07:18AM
              • Re:Text by makomk (Score:2) Wednesday April 26 2006, @08:00AM
              • Not everything. by warrax_666 (Score:2) Saturday April 29 2006, @09:17AM
              • 1 reply beneath your current threshold.
            • Why?!? (Score:5, Funny)

              by A nonymous Coward (7548) * on Wednesday April 26 2006, @12:18AM (#15202638)
              Why does the entire world have to look like a scripting language from an OS designed four decades ago?

              Wheels -- thousands of years old. Still work.

              Fire -- hundres of thousands of years under human control -- still works.

              And you -- still typing after all these years, over a hundred now, since the invention of the keyboard. Still using fonts, for pete's sake, on graphical displays, invented before UNIX, along with mice, still using silicon (60 years old) and rust (thousands of years old) and electricity, back before Mr Franklin's experiments with kites 250 years ago, still using bits for storage as characters, processed by computer instructions, over 50 years old. Why haven't you graduated to something modern?
              [ Parent ]
              • Re:Why?!? by EvanED (Score:1) Wednesday April 26 2006, @02:31AM
              • Re:Why?!? by vidnet (Score:2) Wednesday April 26 2006, @10:04AM
              • Re:Why?!? by A nonymous Coward (Score:2) Wednesday April 26 2006, @10:42AM
              • Re:Why?!? by somersault (Score:2) Wednesday April 26 2006, @11:59AM
              • Re:Why?!? by vidnet (Score:2) Wednesday April 26 2006, @01:56PM
              • Re:Why?!? by shaitand (Score:2) Wednesday April 26 2006, @07:38PM
            • Re:Text by Forbman (Score:2) Wednesday April 26 2006, @09:34AM
          • Re:Text (Score:5, Interesting)

            by Tim C (15259) on Tuesday April 25 2006, @05:58PM (#15201044)
            They purposefully [for instance] use the wrong direction on the slashes to make things incompatible. That's the level of stupidity they stoop to.

            When MS-DOS was first written, there was no such thing as directories. Everything lived in the root, and there was no need for path names or path separators. It quickly became necessary to pass arguments to commands, and the natural way to do this was to distinguish them from paramters by pre-pending a character. MS chose to use /.

            Time passed, and directories were invented. People started to use / as a path separator, in similar fashion to how references are built up - eg major part/minor part/whatever/etc, say "57b/6". MS obviously had to support directory trees, but didn't want to break backward compatibility (something they are loathe to do to this day), and so could not use /. Thus, they went with the next nearest thing, \.

            Alternatively, perhaps you're right, and they're petty and stupid enough to shoot themselves in the foot by making themselves incompatible with every competing product at a time when they had little or no compelling advantage.

            Incidentally, try using / in a path in the address bar of Windows Explorer in a modern Windows (eg >= 2k). You might be surprised.

            There is no reason why they couldn't embed C# support [or generically .NET] within bash or tcsh or whatever. That way you could still use the familiar but then extend into .NET crap if you wanted to.

            What familiar? This isn't aimed at Unix admins, this is aimed at Windows admins, and most of them are going to be much more familiar with cmd.exe than with bash, or ksh, or ash, or tsh, zsh or any other of the myriad, subtly-incompatible *nix shells.
            [ Parent ]
            • Re:Text by ianpatt (Score:2) Tuesday April 25 2006, @06:51PM
              • Re:Text by dotcher (Score:1) Wednesday April 26 2006, @12:18AM
              • Re:Text by TheNetAvenger (Score:2) Wednesday April 26 2006, @08:54AM
              • Re:Text by Pius II. (Score:2) Wednesday April 26 2006, @05:53AM
            • Re:Text by MechaStreisand (Score:1) Tuesday April 25 2006, @07:31PM
              • Re:Text by sconeu (Score:2) Tuesday April 25 2006, @07:57PM
              • Re:Text by SeeMyNuts! (Score:1) Tuesday April 25 2006, @08:00PM
              • Re:Text by tomstdenis (Score:2) Tuesday April 25 2006, @10:12PM
              • Re:Text by giliposha (Score:1) Wednesday April 26 2006, @04:20AM
              • Re:Text by MechaStreisand (Score:1) Tuesday April 25 2006, @08:47PM
              • Re:Text by MechaStreisand (Score:1) Wednesday April 26 2006, @01:02AM
              • Re:Text by EvanED (Score:2) Wednesday April 26 2006, @02:35AM
              • Re:Text by anagama (Score:2) Wednesday April 26 2006, @03:19AM
              • Re:Text by anagama (Score:2) Wednesday April 26 2006, @03:21AM
              • Re:Text by TheNetAvenger (Score:2) Wednesday April 26 2006, @09:26AM
              • Re:Text by orcrist (Score:2) Wednesday April 26 2006, @10:20AM
              • Re:Text by rufus t firefly (Score:2) Wednesday April 26 2006, @10:42AM
              • Re:Text by shaitand (Score:2) Wednesday April 26 2006, @08:19PM
              • Re:Text by TheNetAvenger (Score:2) Saturday April 29 2006, @09:14PM
              • 1 reply beneath your current threshold.
            • Re:Text by TheUser0x58 (Score:2) Wednesday April 26 2006, @12:02AM
              • Re:Text by boa13 (Score:3) Wednesday April 26 2006, @12:41AM
            • Re:Text by tyme (Score:2) Wednesday April 26 2006, @02:39AM
              • Re:Text by Forbman (Score:2) Wednesday April 26 2006, @09:40AM
              • 1 reply beneath your current threshold.
            • Re:Text by ookaze (Score:2) Wednesday April 26 2006, @05:03AM
              • Re:Text by Forbman (Score:2) Wednesday April 26 2006, @10:06AM
            • a proper response by namekuseijin (Score:2) Wednesday April 26 2006, @08:18AM
            • 2 replies beneath your current threshold.
          • Install SFU by Philip K Dickhead (Score:1) Tuesday April 25 2006, @07:00PM
          • Re:Text by bheer (Score:2) Tuesday April 25 2006, @07:51PM
            • Re:Text by tomstdenis (Score:3) Tuesday April 25 2006, @10:04PM
              • Re:Text by CableModemSniper (Score:1) Tuesday April 25 2006, @11:27PM
              • Re:Text by bheer (Score:1) Wednesday April 26 2006, @06:19AM
              • Re:Text by tomstdenis (Score:3) Tuesday April 25 2006, @11:42PM
              • Re:Text by tomstdenis (Score:2) Wednesday April 26 2006, @07:05AM
              • Re:Text by Slime-dogg (Score:2) Wednesday April 26 2006, @10:13AM
              • Re:Text by bheer (Score:1) Wednesday April 26 2006, @01:58PM
              • Re:Text by tomstdenis (Score:2) Thursday April 27 2006, @08:49AM
              • Re:Text by bheer (Score:1) Thursday April 27 2006, @12:28PM
              • Re:Text by tomstdenis (Score:2) Thursday April 27 2006, @02:43PM
              • Re:Text by bheer (Score:1) Friday April 28 2006, @02:56AM
              • Re:Text by tomstdenis (Score:2) Friday April 28 2006, @07:40AM
              • Re:Text by bheer (Score:1) Friday April 28 2006, @10:07AM
              • Re:Text by tomstdenis (Score:2) Friday April 28 2006, @11:37AM
              • Re:Text by bheer (Score:1) Sunday April 30 2006, @05:38AM
            • Re:Text by mycall (Score:1) Wednesday April 26 2006, @12:15AM
              • Re:Text by bheer (Score:1) Wednesday April 26 2006, @05:09AM
          • Re:Text by Ruphuz (Score:1) Wednesday April 26 2006, @03:33AM
            • Re:Text by LazySlacker (Score:1) Wednesday April 26 2006, @05:56AM
        • Re:Text by shaitand (Score:2) Tuesday April 25 2006, @05:27PM
          • Re:Text by secolactico (Score:2) Tuesday April 25 2006, @07:46PM
        • Re:Text by Excelsior (Score:1) Tuesday April 25 2006, @05:48PM
        • cscript by rp (Score:1) Wednesday April 26 2006, @03:12AM
      • Re:Text by Philip K Dickhead (Score:1) Tuesday April 25 2006, @05:30PM
        • Re:Text by einhverfr (Score:2) Tuesday April 25 2006, @05:40PM
          • Re:Text by Philip K Dickhead (Score:2) Tuesday April 25 2006, @06:19PM
        • Re:Text by CastrTroy (Score:3) Tuesday April 25 2006, @06:30PM
          • Re:Text by jandrese (Score:2) Tuesday April 25 2006, @07:28PM
          • Re:Text by stikves (Score:3) Tuesday April 25 2006, @10:19PM
            • Re:Text by CastrTroy (Score:2) Wednesday April 26 2006, @07:50AM
            • Re:Text by richlv (Score:2) Wednesday April 26 2006, @08:49AM
              • Re:Text by stikves (Score:1) Wednesday April 26 2006, @11:04AM
        • Re:Text by cyber-vandal (Score:2) Wednesday April 26 2006, @04:13AM
      • Re:Text (Score:5, Insightful)

        by PsychicX (866028) on Tuesday April 25 2006, @05:39PM (#15200923)
        Prepare yourself, this may come as a shock...It supports text based communication. Amongst the vast array of .NET objects is the ever popular System.String, which is of course an object representing plain text. Pipe it to a program and guess what happens? That's right, the .NET part is stripped away and the plain old text is sent to the app.

        Microsoft gets it just fine. They get that *nix's text based communication is a crude and outdated way of doing things, and they provide a vastly more powerful interface, while keeping the old ones perfectly intact. I've been using MSH for several months now, and I'm amazed at how much more powerful it is than bash (which was previously a god in my eyes).
        [ Parent ]
        • Text formats dead... by SuperKendall (Score:2) Tuesday April 25 2006, @06:19PM
        • Re:Text (Score:4, Insightful)

          crude and outdated

          Easily the oddest spelling of "simple and effective" I've ever seen.

          Or, to thug Rob http://landley.net/ [landley.net]'s sig,

          "Never bet against the cheap plastic solution."

          Redmond's non-grasp of the wisdom of that observation is simply...titanic...
          [ Parent ]
          • Re:Text by AstrumPreliator (Score:2) Tuesday April 25 2006, @07:08PM
            • Re:Text by smitty_one_each (Score:2) Tuesday April 25 2006, @07:47PM
              • Re:Text by gnud (Score:2) Wednesday April 26 2006, @04:09AM
              • Re:Text by smitty_one_each (Score:2) Wednesday April 26 2006, @04:49AM
            • Re:Text by heinousjay (Score:1) Tuesday April 25 2006, @07:53PM
            • Re:Text by Eideewt (Score:2) Tuesday April 25 2006, @10:14PM
              • Re:Text by Eideewt (Score:2) Wednesday April 26 2006, @01:50AM
              • 1 reply beneath your current threshold.
        • Re:Text by peterarm (Score:1) Tuesday April 25 2006, @06:52PM
        • Re:Text (Score:4, Funny)

          by projecto2501 (260290) on Tuesday April 25 2006, @08:48PM (#15201851)
          Our cheif weapon is strings, strings and objects. Our TWO weapons are strings, objects, and JIT bite code.

          "Amongst the vast array of .NET objects is the ever popular System.String,....."

          Nobody expects the command line!
          [ Parent ]
        • Re:Text by Coward Anonymous (Score:2) Tuesday April 25 2006, @10:49PM
        • 1 reply beneath your current threshold.
      • Re:Text by mrogers (Score:1) Tuesday April 25 2006, @05:57PM
        • Re:Text by jrockway (Score:2) Tuesday April 25 2006, @07:00PM
          • Re:Text by dotcher (Score:1) Wednesday April 26 2006, @12:12AM
          • Re:Text by mrogers (Score:1) Wednesday April 26 2006, @01:48AM
        • Re:Text by Gorshkov (Score:1) Wednesday April 26 2006, @04:28AM
          • Re:Text by mrogers (Score:1) Wednesday April 26 2006, @10:34AM
      • Re:Text by I'm Don Giovanni (Score:1) Tuesday April 25 2006, @08:56PM
      • Re:Text by Achromatic1978 (Score:2) Wednesday April 26 2006, @05:43AM
        • Re:Text by tomstdenis (Score:2) Wednesday April 26 2006, @06:53AM
      • Re:Text by tomstdenis (Score:2) Tuesday April 25 2006, @05:15PM
        • +1 Truth by Anonymous Coward (Score:1) Tuesday April 25 2006, @05:22PM
          • Re:+1 Truth by tomstdenis (Score:2) Tuesday April 25 2006, @10:18PM
        • Re:Text by drinkypoo (Score:2) Tuesday April 25 2006, @05:47PM
      • 1 reply beneath your current threshold.
    • Re:Text (Score:4, Funny)

      by cp.tar (871488) <cp.tar.bz2@gmail.com> on Tuesday April 25 2006, @05:01PM (#15200671)

      Currently reading: CLASH - Common Lisp As SHell.

      Objects? We don't need no stinkin' objects!

      [ Parent ]
      • Re:Text by JoshDanziger (Score:1) Wednesday April 26 2006, @01:02AM
        • Re:Text by cp.tar (Score:2) Wednesday April 26 2006, @01:37AM
      • 1 reply beneath your current threshold.
    • Re:Text by nuzak (Score:2) Tuesday April 25 2006, @05:22PM
      • Re:Text by ookaze (Score:3) Wednesday April 26 2006, @04:58AM
        • Re:Text by Yankovic (Score:2) Wednesday April 26 2006, @12:31PM
      • Re:Text by theolein (Score:2) Wednesday April 26 2006, @06:35AM
        • Re:Text by Dan Ost (Score:2) Wednesday April 26 2006, @08:49AM
      • Cloned within a month? by tjwhaynes (Score:2) Wednesday April 26 2006, @07:34AM
      • Re:Text by just_another_sean (Score:2) Wednesday April 26 2006, @08:27AM
      • Re:Text by poot_rootbeer (Score:2) Wednesday April 26 2006, @09:36AM
      • 2 replies beneath your current threshold.
    • Re:Text by Telastyn (Score:1) Tuesday April 25 2006, @05:33PM
    • Re:Text by RovingSlug (Score:3) Tuesday April 25 2006, @05:47PM
      • Re:Text by magetoo (Score:2) Wednesday April 26 2006, @07:56AM
        • Re:Text (Score:4, Insightful)

          by squiggleslash (241428) on Wednesday April 26 2006, @08:04AM (#15203931)
          (Last Journal: Monday November 12, @02:31PM)
          Yeah, me too. I don't know, but the last few days, Slashdot seems to have attracted more dumbness than usual.

          What we have here is actually fascinating. It's an entirely new way of looking at the command line. It moves from the file based systems we've used since computing began, and instead looks at the high level programming and works within that framework. I think that's great, personally. If Microsoft could produce an operating system that eschews Win32/Win16/DOS et al completely and is pure .NET, with this as the shell, they would be producing something entirely radical and interesting at the same time, something that may well end up being several orders of magnitude more usable and useful than the Unix-based competition.

          I'd have appreciated a good discussion about it. As it is, I guess I'll have to wait until John Siracuse does an article for Ars Technica on the subject, and I'm not certain he will.

          [ Parent ]
          • Re:Text by wondergeek (Score:1) Wednesday April 26 2006, @12:14PM
            • Re:Text by squiggleslash (Score:2) Wednesday April 26 2006, @01:08PM
    • Re:Text by fm6 (Score:2) Tuesday April 25 2006, @06:00PM
    • Re:Text by curunir (Score:2) Tuesday April 25 2006, @06:07PM
      • Re:Text by jrockway (Score:2) Tuesday April 25 2006, @07:06PM
        • Re:Text by curunir (Score:2) Tuesday April 25 2006, @07:33PM
          • Re:Text by Waffle Iron (Score:1) Tuesday April 25 2006, @08:20PM
            • Re:Text by nuzak (Score:2) Wednesday April 26 2006, @12:29PM
          • Re:Text by msuarezalvarez (Score:1) Tuesday April 25 2006, @08:36PM
            • Re:Text by mindriot (Score:2) Wednesday April 26 2006, @03:43AM
          • Re:Text by Gorshkov (Score:1) Wednesday April 26 2006, @04:39AM
            • Re:Text by nuzak (Score:2) Wednesday April 26 2006, @12:32PM
              • Re:Text by Gorshkov (Score:1) Thursday April 27 2006, @02:33AM
              • Re:Text by nuzak (Score:1) Thursday April 27 2006, @10:57AM
              • Re:Text by Gorshkov (Score:2) Thursday April 27 2006, @11:07AM
        • 1 reply beneath your current threshold.
    • Re:Text by Blakey Rat (Score:2) Tuesday April 25 2006, @06:39PM
      • 1 reply beneath your current threshold.
    • Re:Text by taylork (Score:1) Tuesday April 25 2006, @07:03PM
    • Re:Text by Anonymous Coward (Score:1) Wednesday April 26 2006, @04:10AM
    • Re:Text by Chris_Jefferson (Score:2) Wednesday April 26 2006, @04:17AM
    • Re:Text by Uzik2 (Score:1) Wednesday April 26 2006, @08:43AM
    • Re:Name by Ithika (Score:2) Tuesday April 25 2006, @06:27PM
    • Re:Name by grondu (Score:2) Tuesday April 25 2006, @08:20PM
    • 1 reply beneath your current threshold.
  • The relevant quote... (Score:4, Insightful)

    by joe_bruin (266648) on Tuesday April 25 2006, @04:52PM (#15200590)
    (http://slashdot.org/~joe_bruin/ | Last Journal: Wednesday April 14 2004, @09:25PM)
    Ahem:

    Those who do not understand Unix are condemned to reinvent it, poorly.
  • Probably never, would be my guess, but one of the things I find annoying is how much reinvention-of-the-wheel Microsoft gets away with and yet continues to make the ridiculous claim that they're innovating, when in fact they're merely catching up. Bill Gates, welcome to 1994.
  • Dynamic horizontal resizing!!! (Score:1, Insightful)

    by Anonymous Coward on Tuesday April 25 2006, @04:55PM (#15200625)
    When will the Windows command line finally have this?
  • but but but (Score:2)

    by Austerity Empowers (669817) on Tuesday April 25 2006, @04:55PM (#15200627)
    We WANT Linux/Unix shells...they work just great, and have lots of tool support...and have lots of good documentation...and have 20+ years of abuse.
  • Is that like PowerGlove? (Score:5, Funny)

    by Orrin Bloquy (898571) on Tuesday April 25 2006, @04:56PM (#15200636)
    (Last Journal: Monday May 22 2006, @07:16PM)
    If so, sign me and Fred Savage up!
    • It's so bad by tepples (Score:2) Tuesday April 25 2006, @07:12PM
    • 1 reply beneath your current threshold.
  • i don't get it. (Score:5, Interesting)

    by moochfish (822730) on Tuesday April 25 2006, @05:00PM (#15200662)
    Is it just me or does it seem insanely odd that a "shell" for an OS is a) shipped seperately and b) doesn't use text as a native data type? Maybe I'm stuck in the "past," but I always saw the shell as the barebones method for a user interact with an OS. Either this really is cutting edge (object data types) or this is just a hyped-up .NET application that is designed to *look like* the shell.
  • by expro (597113) on Tuesday April 25 2006, @05:01PM (#15200672)
    I wonder if the trademark works. They will probably have to call it Power Microsoft Shell. People will likely want to have Unix-like piping of textual results. Does this mean a Text array gets instantiated, or is it a stream object?
  • This sounds very disturbing.
  • Passport ID required to download? (Score:1, Flamebait)

    by LochNess (239443) on Tuesday April 25 2006, @05:04PM (#15200687)
    (http://www.kuro5hin.org/)
    No thanks.
  • More like WMIScript (Score:5, Interesting)

    by Anonymous Coward on Tuesday April 25 2006, @05:04PM (#15200693)
    Seriously. Look at the sample scripts [microsoft.com]. Every last one of them looks like this:
    $strComputer = "."
     
    $colItems = get-wmiobject -class "Win32_UTCTime" -namespace "root\CIMV2" `
    -computername $strComputer
     
    foreach ($objItem in $colItems) {
          write-host "Day: " $objItem.Day
          write-host "Day Of Week: " $objItem.DayOfWeek
          write-host "Hour: " $objItem.Hour
          write-host "Milliseconds: " $objItem.Milliseconds
          write-host "Minute: " $objItem.Minute
          write-host "Month: " $objItem.Month
          write-host "Quarter: " $objItem.Quarter
          write-host "Second: " $objItem.Second
          write-host "Week In Month: " $objItem.WeekInMonth
          write-host "Year: " $objItem.Year
          write-host
    }
    So, we can query the Windows Management Interface, and we can write it to the console. Awesome.

    Guys, next time, think about making it do something before you put out a release candidate.
    • Re:More like WMIScript by Anonymous Coward (Score:1) Tuesday April 25 2006, @05:20PM
      • 1 reply beneath your current threshold.
    • Re:More like WMIScript by tgd (Score:2) Tuesday April 25 2006, @07:16PM
    • Re:More like WMIScript (Score:5, Informative)

      by Anonymous Coward on Tuesday April 25 2006, @08:49PM (#15201857)
      Unfortunately a lot of the examples on ScriptCenter are direct translations of VBScript examples. This is good in the sense that it shows how a VBScript user can migrate stuff to PowerShell. It's not, however, a good illustration of how PowerShell works. The above script can simply be written as

      get-wmiobject Win32_UTCTime

      WMI is one of the reasons we needed an object-based shell - it presents Window management information as a collection of objects. Writing code to render those objects to strings and then parse them back into objects is not realistic. We needed a shell that could deal with them directly.

      Bruce Payette
      PowerShell Technical Lead
      Microsoft
      [ Parent ]
      • Re:More like WMIScript (Score:5, Informative)

        by YeeHaW_Jelte (451855) on Wednesday April 26 2006, @02:37AM (#15202976)
        (http://www.echtehelden.org/)
        I can't believe no one picked up on this comment. Mr Payette here is giving us interesting insight into the reasons for the object-orientatedness of the shell.

        As I understand it, the difference between PowerShell and your typical Unix shell is that the Unix OS is built around the shell and PowerShell is built around the OS.

        As text exchange of data is the de facto way of piping data between applications in a unix system and the shell has long been the de facto way of interacting with the OS and the applications running on it most applications and the OS itself have been built to interact very well with the shell.

        However, on windows, which hasn't been built around the shell and which presents objects as the standard way to share data, they had the choice of either
        a: adding functionality to all applications in order to allow it to interact in a text-based way with cmd.exe, which is rediculous because of the vast number of applications already out.
        OR
        b: writing a shell built to integrate with the OS and the objects it uses to exchange data, which they did with PowerShell.

        Basically, this seems a sound design decision which probably has it drawbacks (necessity for data type handling & such ) but seems like a good match for winOS'es. An object orientated shell would probably not work very well with a unix OS, if only for the fact that (most?) unixes are written in C, which does not do objects at all.

        Seems like a good solution for windows systems, too bad it isn't (won't be?) included with the OS by default. It might make windows a better place to live for all us CLI types, and it can't possibly be worse than cmd.exe, can it?
        [ Parent ]
      • Re:More like WMIScript by ratboy666 (Score:2) Wednesday April 26 2006, @08:10AM
      • 2 replies beneath your current threshold.
    • Re:More like WMIScript by xarak (Score:1) Wednesday April 26 2006, @12:32AM
    • Re:More like WMIScript by cerberusss (Score:2) Wednesday April 26 2006, @05:34AM
    • 1 reply beneath your current threshold.
  • See! they admitted it! (Score:5, Funny)

    by brightloudnoise (102680) on Tuesday April 25 2006, @05:07PM (#15200714)
    (http://www.brightloudnoise.com/)
    Windows PowerS hell

    I knew it all along!
  • Clippy? (Score:3, Funny)

    by MightyMait (787428) on Tuesday April 25 2006, @05:09PM (#15200730)
    (Last Journal: Wednesday April 11 2007, @05:00PM)
    What I want to know: does it come with a text version of Clippy?
  • by Anonymous Coward on Tuesday April 25 2006, @05:11PM (#15200751)
    So: You want a shell-like environment that lets you type in commands to operate on objects representing files, directories, etc.

    Great! Install python*, install the file packages, open the interactive interpreter... you're done.

    Why bother waiting for this MONAD thing? It looks like all MONAD offers over any other interactively interpreted programming language right now is that it is compatible with the C# object model. Which, y'know, on the one hand, the UNIX "glue" platforms (python, perl, ruby, kde, gtk) could totally benefit from a unified object model that would allow you to construct an object in a GTK+ application, pass it to a perl script, pipe it to a ruby app, etc. But, y'know, on the other hand, python on windows supports the CLR/C# object model as well... and it's available now.

    * Or ruby.
  • Good name change! (Score:1, Funny)

    by m4c north (816240) on Tuesday April 25 2006, @05:11PM (#15200758)
    Monad...

    Is that like a gonad, but you only have one? And I thought eunuchs had it tough!

  • What about the applications? (Score:4, Interesting)

    The thing in *nix is that most applications support the shell. They are built for piping stuff in any possible way. Are the Windows applications going to be built with the shell in mind or is this going to be yet another cmd.exe where you have to build your own stuff to do what you want instead of like *nix where you just pipe at your hearts content.

    I have also a hard time imaging using objects being easier to understand for normal admins and users.

    Also, when exactly did the shell stop to suck and begin to be a good feture? The same second Microsoft made their own version?
  • by eman1961 (642519) on Tuesday April 25 2006, @05:42PM (#15200947)
    Shells are often used for managing systems and networks. I think that PowerShell will do an adequate job at this, although it seemed to be more complicated than necessary to me.

    Unix shell scripts are also incredibly good at manipulating text files, using awk, grep, sed, cut, etc. I tried to do such a task with PowerShell and found it wanting. I revered to Windows Services for Unix (basically the Korn shell).

    For those who don't know, a monad is a notion in functional programming languages that is a way to structure computations in terms of values and sequences of computations using those values. Monads allow the programmer to build computations using sequential building blocks, which can themselves be sequences of computations. This is not dissimilar to how PowerShell works, but really, I when manipulating text files, I don't want to be dealing with functional programming language abstractions.

  • Downloading (Score:4, Interesting)

    Doesn't appear to be a way to get a copy to look at unless you have Passport which seems to require a hotmail account. I don't have time to read a couple of dozen licensing agreements atm and it looks like if I register I'm basically signing a non-compete license with Microsoft. Not really a term that I am willing to agree to. Has anyone gone through the contracts?
    • Re:Downloading (Score:5, Informative)

      by cybereal (621599) on Tuesday April 25 2006, @06:49PM (#15201335)
      (http://www.ztj.name/)
      It takes five minutes to setup a passport account associated with any arbitrary email address and thus far has generated absolutely zero spam to my email account. You can also sign-up with a "Limited" passport account, which means, you can sign up with no association with any actual email address whatsoever. You end up creating a fake @passport.com address for signing in.

      The contracts are not any different than what you would agree to with Google, Yahoo, or any other online service provider.

      Furthermore, with only accepting the passport license, it's a bit shorter than hotmail's. Try reading it yourself. The TOS is actually very short and easy to read if you're not illiterate: https://accountservices.passport.net/PPTOU.srf?x=4 .0.5610.0&cbalt=www&vv=400&lc=1033 [passport.net]
      [ Parent ]
      • Re:Downloading by Lando (Score:2) Wednesday April 26 2006, @08:33AM
        • Re:Downloading by Seraphim_72 (Score:2) Wednesday April 26 2006, @09:42AM
    • 1 reply beneath your current threshold.
  • Extensions... (Score:1)

    by d3matt (864260) on Tuesday April 25 2006, @05:57PM (#15201037)
    (http://www.matt-and-kim.com/)
    From TFA:
    Designed for extensibility so that independent software vendors and enterprise developers can easily build custom tools and utilities to administer their software.

    Looks like it might not be that hard to create a bash wrapper or similar (python anyone?)
  • And the point is? (Score:3, Interesting)

    by thetoastman (747937) on Tuesday April 25 2006, @06:14PM (#15201132)

    First of all, I would have to upgrade from Windows/2000 Professional to Windows/XP Professional. Since this costs money, I'm not terribly interested. My system has enough trouble running all the stuff I run now (2 databases, a web server, an application server, a development environment, etc. etc.). More operating system overhead is the last thing I'm interested in.

    Second of all, I get to write scripts in another language that's not portable across all platforms. I've never worked in a monolithic environment, and I probably never will. Cross-platform tools are a requirement.

    Third, I can do a lot of administrative programming for Windows in Perl. I imagine python and ruby have similar hooks (haven't checked). For personal productivity I run Cygwin's version of bash on this machine when I'm running Windows, and bash when I'm running Linux. Different people may want different interactive tools. Fortunately there are several cross-platform choices.

    Finally, while I've heard about all these productivity gains with C# and .NET, I've not experienced it. I have .NET, C#, and Visual C++ .NET on the Windows side of my environment. What I've seen is that Microsoft makes a credible IDE. The IDE makes simple things easy, and complex things ridiculous. Transferring skills learned in the Microsoft world to any other environment is difficult at best, and pointless for the most part.

    Oh - never mind - that's Microsoft's point.

  • Come kick the tires (Score:5, Informative)

    by jsnover (890842) on Tuesday April 25 2006, @06:40PM (#15201283)
    I encourage you all to come kick the tires and find out what PowerShell really does/does not do. I think you'll be pleasantly surprised by its power and simplicity and might even like it. Many of us on the team have a deep background in UNIX and brought that into our work. Even if you don't like what we've done, trying it out will allow you to know enough to throw your rocks accurately. :-)

    http://www.microsoft.com/downloads/details.aspx?Fa milyId=2B0BBFCD-0797-4083-A817-5E6A054A85C9&displa ylang=en [microsoft.com]

    If you'd like to learn more, you can read our team blog at:
    http://blogs.msdn.com/PowerShell [msdn.com]

    Enjoy!
    Jeffrey Snover
    PowerShell Architect
    • Re:Come kick the tires by Aladrin (Score:3) Tuesday April 25 2006, @06:50PM
    • Re:Come kick the tires by Anonymous Coward (Score:1) Tuesday April 25 2006, @07:03PM
    • Why not just implement BASH or FIX cmd.exe?? by swb (Score:1) Tuesday April 25 2006, @07:11PM
      • 1 reply beneath your current threshold.
    • DIRECT DOWNLOAD LINK (no passpos) (Score:4, Informative)

      by Anonymous Coward on Tuesday April 25 2006, @07:56PM (#15201682)
      Windows PowerShell RC1 (for .NET Framework 2.0 RTM) x86

      http://download.microsoft.com/download/e/8/c/e8ccf 14c-8009-43ad-b953-1b18609cf14c/PowerShell_i386.zi p [microsoft.com]
      [ Parent ]
    • Re:Come kick the tires by fade-in (Score:3) Tuesday April 25 2006, @08:08PM
    • Re:Come kick the tires by cgranade (Score:2) Tuesday April 25 2006, @08:16PM
    • Re:Come kick the tires by anominous (Score:1) Tuesday April 25 2006, @11:03PM
    • by RebornData (25811) on Tuesday April 25 2006, @11:06PM (#15202409)
      (http://www.danasupport.com/)
      Although I haven't played with it, I've read a bit about this shell, and there was something that bothered me about it, and I finally just put my finger on it: this thing was designed by programmers.

      I know that the line between "programmer" and "system administrator" is often blurry. And the line between "shell" and "interactive script interpreter" is as well. But when you start requiring people to understand concepts like objects (which may seem like old hat to a programmer), you're already presuming a relatively sophisticated understanding that an "average user" has no grasp of. And the .Net libraries are vast and complex... looking at some of the sample msh scripts, I understand how a windows programmer would think they were an amazingly powerful simplification, but damn there's a lot I have to know to get basic things done.

      Ye olde csh and sh are great because they provide a simple way to put programming logic around the set of operations users spend their entire day in and are already familiar with. The learning curve is very incremental: you can master the basic UNIX commands, and then start to add in variable subtitutions (!$ anyone?) and loops (foreach) and such as needed.

      In other words, the jump from basic UNIX user knowledge to simple scripting is very small, because the scripting is presented in *exactly* the same context and using the syntax the user does day-to-day work in. But as a competant windows admin who doesn't know VB and hasn't written a line of .Net code in my life, I see almost nothing familar when I read .msh scripts. It appears to require an entirely new body of knowledge to do simple things, and bears little or no relationship to the interfaces and paradigms I use day to day. Yes, I know those interfaces are graphical. Seems to me there's bound to be some way to do it (or would be if there were any logic or consistency to the organization of the everyday administative interfaces in Microsoft's products).

      Don't get me wrong... I understand that the goal of an intuitive scripting tool is in many ways at odds with providing a rich and powerful development environment that can complete with something like perl, but I had hoped there was something a little closer to "ground level" coming.

      -R
      [ Parent ]
    • Can't seem to find the ebuild by Nicolas MONNET (Score:1) Wednesday April 26 2006, @03:04AM
    • Re:Come kick the tires OF WINDOWS XP by MSFanBoi2 (Score:1) Tuesday April 25 2006, @11:46PM
      • 1 reply beneath your current threshold.
    • Re:Come kick the tires by I'm Don Giovanni (Score:1) Wednesday April 26 2006, @01:18AM
    • Re:Come kick the tires by I'm Don Giovanni (Score:1) Wednesday April 26 2006, @01:24AM
    • 5 replies beneath your current threshold.
  • IronPython (Score:1)

    by pOrATa paTima (78324) on Tuesday April 25 2006, @06:54PM (#15201357)
    Things would just rock when combined with IronPython. You could easily create something like Monad/PowerShell with IronPython, which fully integrates with .Net. Heck you can even use VisualStudio to edit/debug your scripts.
    • 1 reply beneath your current threshold.
  • Not to be a heckler or anything, but I'm not convinced. I would at least like to see some screen shots before I give it a try. Secondly, what is this? An object-oriented shell? I'm a computer science student and all pro-Linux, but I would still like to know more information about this shell.
  • Believe it or not.... (Score:4, Insightful)

    by XMilkProject (935232) on Tuesday April 25 2006, @07:22PM (#15201528)
    (http://www.xmilk.com/)
    I know its hard to accept microsoft did something good, but as someone who has been using betas of this for months, I must say it is pretty darn slick.

    Think of how great your linux environment is, becuase you can easily chain together applications that pass textual data between each other... This is the same idea, except we can now pass complex objects and custom data types as well.

    To solve the problem of how to 'display' an object, each object type can have an xml file describing how to display it in a text environment.
  • by R3d M3rcury (871886) on Tuesday April 25 2006, @07:27PM (#15201559)
    (Last Journal: Friday May 04 2007, @08:30PM)
    Apple is already dropping the "Power" nomenclature (ie, PowerBooks became MacBooks). Redmond's photocopier is too slow. :^)
  • by foorilious (798451) on Tuesday April 25 2006, @07:51PM (#15201667)
    Pronounced "PSSSSH!" of course.
  • The other PowerShell (Score:2, Informative)

    by PJC1 (301605) on Tuesday April 25 2006, @08:58PM (#15201904)
    Couldn't they have picked a different name? I've been using PowerShell [sourceforge.net] on Linux for years now. It's a terminal emulator for X11 (like xterm) and is the first result on Google for the word PowerShell. Now a terminal emulator isn't exactly the same as a shell, but I could see some confusion occurring as a result.
  • The most important question (Score:2, Funny)

    by Antimatter3009 (886953) on Tuesday April 25 2006, @09:11PM (#15201962)
    Can I use ls to get a file listing yet?
  • i dont like it (Score:1)

    by tscheez (71929) on Tuesday April 25 2006, @09:31PM (#15202036)
    sorry. (wait, it's microsoft, why am i apologizing?)

    first it's slow. slower than it takes cygwin to load. second, it's too much typing. all the short form aliases are nice, but seriously, remove-item for rm? maybe it's just me, maybe it'll grow on me, but i doubt it. plus, they really should do a google search before coming up with names, the first result for powershell is http://powershell.sourceforge.net/ [sourceforge.net] (the thought did cross my mind)
  • Good - need a change (Score:2, Interesting)

    Am I the only one here who has spent weeks of work time writing batch and vbscripts to automate operations on Wn2k Servers and networked Windows clients? If this works as advertised (and if I was still running Windows) Id use it.

    Its a step in the right direction and anything that extends an admins ability to write effective scripts is a bonus. After all whilst it may have taken me a few days to write some of the more complex scripts that we used it would have taken longer to write an application in VB or C to do the same job.

    (BASH is my shell of choice, its because I have an unhealthy obsession with grep...)
    nb Not spell checking this post - its too early
  • by solcity (652067) on Tuesday April 25 2006, @10:19PM (#15202222)
    (http://www.solution-city.com/)
    One wonders why they chose to change the name... the open source/gnu movement would have called their copy Gonad!
    • 1 reply beneath your current threshold.
  • by moria (829831) on Tuesday April 25 2006, @11:23PM (#15202475)

    Virtually communication under Unix is text-based, no matter it's human-to-program or program-to-program. The CLI output/input is text based; the configuration file is text-based; the log is text-based. I think the reason is that most of the stuff is originally designed for human to read: the thing you pipe to another program is initially intended to be examined by human; the configuration and log is also built to allow a human to read, interpret and change them, manually. However, when this human-oriented (or geek-oriented) text is used to glue different programs, it means extra work to parse them. Thanks to awk and the standardization on standard programs like ps, so far, so good.

    We actually have already seen troubles with this approach. How many programs have tried to override your xorg.conf/sources.list/sshd_config because they don't have a nice way to just insert a few records and gracefully remove it later? Wouldn't it be better if the configuration system provides API for other programs and, more importantly, scripts to interact with it and a GUI/CUI/curse for human to change it, just like what gconf2 has done?

    Maybe it's time for us to put more OO-friendly stuff into UNIX. Apple/OPENSETP has been along the OO-based API road for like 10 years, and MS is trying essentially the same thing with .NET. It's true that we have a lot of OO goodies on UNIX like python and ruby. But the problem is that they are at a higher level, and therefore if you want a python program to interact with ruby, you have to dump your object into text and parse it back into object representation at the other end. It would be nice if we could have some lower-level object layer or simply standardize an object serialization scheme.

    It's true that intercommunication with objects is more efficient and flexible for computer programs.

  • Exchange 12 (Score:1)

    by xbrownx (459399) on Wednesday April 26 2006, @07:57AM (#15203898)
    Why is it going to debut with Exchange 12?

    Are they expected email admins to go nuts creating new scripts now? Seems like it's not exactly their target audience...
  • Amazing Microsoft shell skillz! (Score:2, Insightful)

    by CrankyOldBastard (945508) on Wednesday April 26 2006, @08:05AM (#15203936)
    If you look at http://blogs.msdn.com/powershell/archive/2006/04/2 5/583272.aspx [msdn.com] you can see examples of why this PS is better than ksh. They seem to have deliberatly tried to make the xamples shown as bad as possible for ksh/bash/sh:

    Examples 3

    Find the total bytes used in the current directory

    The example is a 6 line script in ksh, or, a 3 step pipeline using awk to do the following:

    du -b .

    Hmmm...

    Example 5

    Find out when a process is no longer running.

    The example shell script is 11 lines long, features two tests and two pipelines into variables to do the following:

    while

    ps -e | grep application ; do

    sleep 10

    done

    echo "not running no more"

    These are just two - I can see simple little pieces of shell that are trivial to make work on any modern posix system for all the examples provided, except for the laughable

    Example 6

    where they (Microsoft's rather amazing ksh coders) say there's no way in Unix to see what version of the code is running. Well yes, it's not the shell's job to keep track of that, but anything written using gnu getopts or written by anyone who actually keeps track of versions uses '-v' or '-V' to display that information.

    The so-called examples page I linked to is really a page that is designed to convince Windows-only people that they can now have the power we have been used to for 20+ years. Anyone who actually has written any scripts bigger than "echo 'Hello World!'" would be laughing at their examples of "Unix Shell Scripts".

  • Its interesting to see the windows mindset put into action in a shell like fasion.

    FTA:
    $ ls -l | awk '{ tot += $5; print tot; }' | tail -1

    This reduces the complexity, but requires specific knowledge of a new language, the language that is associated with the awk command.

    The MSH loop is similar; each file in the directory is needed, but it is far simpler as the information about the file is already retrieved:

    MSH:

    MSH> get-childitem | measure-object -Property length


    Yes, but using awk like this will work for any similar problem only requireing you to think about the format of the output, whereas this other way requires specific knoweledge of possible properties. I can see some advantages, but don't assume its better because you dont need to learn a new language, cause you basically do.
  • Convergence (Score:2)

    by kompiluj (677438) on Wednesday April 26 2006, @09:57AM (#15204695)
    Ok. I will be rated troll like last time, when I said that Debian is a very good platform for customized distributions (it was before widespread successes of ubuntu and mepis).
    I see that both families of systems - the Unix heritage (Linux, Solaris, BSD less so - they are more true to the original Unix, maybe with exception of dragonflyBSD and Darwin) and the VMS heritage (I mean Windows here) are converging. The aim seems to be a kind of thread based, light-kernel operating system, that can be easily parallelized/or distributed, with object oriented interface at both Kernel and User levels. The Unix was taken in this direction by Plan9, Mach and NeXT.
    Think I am a loony? look here: Plan9 shell introduction [bell-labs.com].
    Unix shell (text) ---> Plan9 shell (arrays of strings) --> Microsoft shell (objects).
    I'm also certain that there will come time when Windows will become Open Source, like Solaris. Not that I like Windows or whatever but Open Source is more functional, so the convergence process will also take Windows in that direction.
  • Contrary to cmd.exe and Unix/Linux shells it operates on objects, not text when passing data between scripts and executables. Easy access to .NET classes allows users to create quite advanced solutions in short time.

    Wow. It took them a long time to copy AppleScript [apple.com].

  • I am working on a unix like shell for Windows that includes a more modern UI. If you are so interested check out www.undeadshell.com. I am still developing it so its a little rough around the edges.
  • I wonder if the open-source community will rise to the challenge of providing something as good for *NIX, or if they will simply live in denial of MS's genuine advancement/advantage. I think that we now need to update all of our *NIX/Windows Advantage/Disadvantage tables and move the "scriptability" check to the other column.

    It's not even clear that you could create something similar for *NIX given that MSH is build on .Net so actually has lots of Objects to script whereas an Object-based shell and *NIX would be lacking any Objects to script. Actually, UNIX is an OO system in a very limited fashion, be it one with only one interface: File.

    I asked James Gosling whether the Solaris team at Sun was doing anything with Java to add MSH-like capabilities to Solaris. To make a long answer short, he basically said "no".

    Many of the high-order functional programming aspects of MSH remind me of a UNIX shell from around 1990 called "Es". You can read about it here: Es: A shell with higher-order functions [webcom.com].

  • And I see no reason to switch to something new.

    http://www.jpsoft.com [jpsoft.com]

    I've had aliases, tab-completion, and much more ... since the 1980s I believe. Objects are nice, but I never use cmd.exe anyway!

  • REXX? AppleScript? (Score:5, Interesting)

    by mccalli (323026) on Tuesday April 25 2006, @04:59PM (#15200657)
    (http://www.eruvia.org/)
    In other words. An OOP shell.

    I don't know, it sounds a lot more like the REXX and AppleScript way of doing things to me. An application exposes a dictionary of possible actions (rephrased in OO, an application object exposes methods) and passes the results to the next REXX or AppleScript-aware application.

    Both REXX and AppleScript predate wide scale adoption of OO, so I might be off-base. It does sound very similar though, and personally I think there's room for both that approach and the classic Bourne shell-style approach.

    Cheers,
    Ian

    [ Parent ]
  • Re:How much will it cost? (Score:4, Informative)

    by cnettel (836611) on Tuesday April 25 2006, @05:03PM (#15200682)
    It will be a general download to the OS as well. It's just that the admin scripts shipped with Exchange will rely on it.
    [ Parent ]
  • by IHSW (960644) on Tuesday April 25 2006, @05:05PM (#15200697)
    Where do you see ANY indication that this will cost you $? For god's sake, can we please stop the nonsensical MS bashing?
    [ Parent ]
  • by n0dna (939092) on Tuesday April 25 2006, @05:09PM (#15200735)
    Shame you didn't RTFA, you'd look smarter.
    [ Parent ]
  • Re:Vista: Includes Free RootKit! (Score:5, Interesting)

    by cnettel (836611) on Tuesday April 25 2006, @05:10PM (#15200741)
    Hm, what kind of security do you expect in a shell? But, IIRC, you can run scripts under any .NET permission set, which means that you can emulate stricter permissions than the user you are running under (just like the Java VM does). I think there is also some code signing possible, but it's always a tradeoff, isn't it? It's not exactly like you want to log into some kind of stealth mode to just sign a script you have edited.
    [ Parent ]
  • Re:Kinda reminds me of Access (Score:5, Insightful)

    by cnettel (836611) on Tuesday April 25 2006, @05:31PM (#15200888)
    Uh, it is a COMMAND SHELL? Of course it's text input based. They also claim that future graphical admin tools will render the equivalent commands in a text field, somewhat like what you describe. But this one certainly uses a text-based interface... The object-orientation is just about how commands interact with each other, especially when piping. Plain text piping between commands (note, not processes, the builtin commands are objects that will generally live in the same process as the shell itself) is a limited special case of this.
    [ Parent ]
  • The parent is a technical question about the newly released technical solution that the slashdot story refers to. What variety of crack is so powerful that ANY mod could have possibly considered the parent post offtopic????!!!
    [ Parent ]
  • Yeah. The script kiddies want to manage your code. Duh.
    [ Parent ]
  • Re:.Net rocks (Score:4, Insightful)

    by pandrijeczko (588093) on Tuesday April 25 2006, @06:07PM (#15201104)
    There, I said it.

    BASH shell-scripting kicks ass. So do PERL, Python, the Korn Shell, PHP and C (and it's derivatives). I know enough about all of them to use one or more of them to do most of the tasks I need to do in the timescale I need to do them.

    I've never programmed anything in any Microsoft programming environment because I've never needed to - and it would take me far too long to learn their way of doing things from scratch rather than working with what I know.

    However, I know a few MS-based programmers who managed to develop the tools they need to in .NET or whatever it is they use - I'm sorry, I'm not informed enough about MS programming environments to voice any more opinions about it.

    Suffice it to say, they're happy and I'm happy.

    So everything is right with the world.

    End of story.

    [ Parent ]
    • Re:.Net rocks by resonantblue (Score:2) Tuesday April 25 2006, @07:14PM
      • Re:.Net rocks by Procyon101 (Score:2) Wednesday April 26 2006, @12:21AM
        • Re:.Net rocks by resonantblue (Score:1) Wednesday April 26 2006, @01:54AM
      • Re:.Net rocks by pandrijeczko (Score:1) Wednesday April 26 2006, @03:44AM
    • Re:.Net rocks by OverlordQ (Score:2) Tuesday April 25 2006, @10:19PM
      • Re:.Net rocks by resonantblue (Score:1) Wednesday April 26 2006, @12:36PM
  • Re:.Net rocks (Score:2)

    by IntergalacticWalrus (720648) on Tuesday April 25 2006, @06:16PM (#15201144)
    Bash or Perl? How about comparing C# to something that's actually in the same league, ie. Java?
    [ Parent ]
    • Re:.Net rocks by Aladrin (Score:2) Tuesday April 25 2006, @06:52PM
      • Re:.Net rocks by IntergalacticWalrus (Score:2) Tuesday April 25 2006, @07:19PM
      • Re:.Net rocks by Billly Gates (Score:2) Tuesday April 25 2006, @08:42PM
  • Re:.Net rocks (Score:2)

    by Procyon101 (61366) on Tuesday April 25 2006, @06:46PM (#15201317)
    (Last Journal: Tuesday February 25 2003, @08:33PM)
    Why does .NET kick ass? I program in C# daily. It is Java, redone decently, with a couple extra features but without some of the polish that Java has. It's nice for a scripted language, but it's by no means revolutionary. Hell, Java isn't revolutionary. .NET is another iteration of a concept that has been around since the 70's, and it has the same advantages and disadvantages that all VMs have. Nothing much to see here. Give me a reason why it's the dog's bollocks, because I really am curious.

    [ Parent ]
    • Re:.Net rocks by glenstar (Score:2) Tuesday April 25 2006, @08:11PM
    • O/T: Polish? by ZxCv (Score:2) Wednesday April 26 2006, @12:27AM
      • Re:O/T: Polish? by Procyon101 (Score:2) Thursday April 27 2006, @04:02PM
        • 1 reply beneath your current threshold.
      • 1 reply beneath your current threshold.
  • Re:Vista: Includes Free RootKit! (Score:5, Informative)

    by amliebsch (724858) on Tuesday April 25 2006, @07:03PM (#15201430)
    (Last Journal: Friday February 10 2006, @02:51PM)
    It's a legitimate question. The security of PSH is mainly two-pronged: first, as in every other console/shell, including cmd.exe, commands and scripts can only act with the permissions that the current user has. This is the standard *nix way of doing things, and it should be far more effective in Vista once proper LUA is finally well-implemented. The other prong is a combination of security features. First, there will be no default associated file type for PSH scripts, meaning that by default, it is not possible to double click a script file and have it run, like you currently can with .BAT files. You can always create an association, but the default behavior is to instatiate the shell first, then run the script with a command-line command. Second, by default, scripts in the current director must be explicitly invoked (equivalent to not having "./" in your PATH). Third, PSH will support code signing, so that scripts must be digitally signed by a trusted publisher. This can, of course, be yourself, because you can easily enough create a cert and trust your own certificate. But it would prevent a lot of trojan attacks.
    [ Parent ]
    • 1 reply beneath your current threshold.
  • by MECC (8478) * on Saturday May 06 2006, @08:49AM (#15276590)
    Microsoft must have many people covering slashdot who have somehow gotton moderator points, for this the parent's comment to get modded 'troll' and 'offtopic'. I just ran into an obvious microsoft shill over on bugtraq. I suppose if I had as much cash as they did, I'd do the same thing. I wonder what the job title is?

    I guess the parent must have struck a nerve...

    [ Parent ]
  • 19 replies beneath your current threshold.