Linked by Thom Holwerda on Wed 15th Nov 2006 23:03 UTC
Windows Fresh from an almost missable US launch of Zune, Microsoft was back on familiar ground Tuesday touting server, security and admin software to reassure shareholders the company's future is bright. Bob Muglia, Microsoft's senior vice president for server and tools opened the company's IT Forum in Barcelona, Spain, by promising a third, and final, beta of Windows Longhorn Server during the first-half of 2007 with full product availability by years' end. Microsoft also officially launched its PowerShell.
Order by: Score:
Yay for PowerShell!
by Constantine XVI (1.84) on Wed 15th Nov 2006 23:15 UTC
Constantine XVI
Member since:
2006-11-02
Fans: 0

It's about time Microsoft put out a halfway-decent shell. I use Ubuntu myself, but I do have to use Windows sometimes, and I hate how half-baked CMD feels.

RE: Yay for PowerShell!
by backdoc (4.32) on Thu 16th Nov 2006 00:12 UTC in reply to "Yay for PowerShell!"
backdoc Member since:
2006-01-14
Fans: 0

I haven't been following Monad/PowerShell closely. I think one of the features added was integration into the .NET Framework. So, my understanding is that you have access to all of the same objects you would have in Visual Studio. That's all cool and all. But, I would be happy if they would just make the cmd window more usable. For starters, they could make it easier to resize. Another thing they could do would be to make the history work smarter. Essentially, I'm saying "copy any of the shells on *nix".

RE[2]: Yay for PowerShell!
by Constantine XVI (1.84) on Thu 16th Nov 2006 13:15 UTC in reply to "RE: Yay for PowerShell!"
Constantine XVI Member since:
2006-11-02
Fans: 0

Last time I used PowerShell, it had aliases for common *nix and cmd commands. And PowerShell does let you use anything in the .net FX. Unfortunatley, the shell window still sucks (as in, unchanged).

RE: Yay for PowerShell!
by StephenBeDoper (2.36) on Thu 16th Nov 2006 10:31 UTC in reply to "Yay for PowerShell!"
StephenBeDoper Member since:
2005-07-06
Fans: 4

Modded you up, cmd.exe is horrid, the only good thing that can be said about it is that it's not command.com. It's inexcusably cumbersome to copy-paste text to/from CMD windows. It also feels pretty amateurish that shortcuts are effectively ignored in the command line (Oh, a 0KB .lnk file, how useful).

Cool
by tomcat (2.16) on Wed 15th Nov 2006 23:28 UTC
tomcat
Member since:
2006-01-06
Fans: 7

Thankfully they changed the "Monad" name, though.

PowerShell with Windows
by Don T. Bothers (4.52) on Thu 16th Nov 2006 00:02 UTC
Don T. Bothers
Member since:
2006-03-15
Fans: 1

Just wondering why someone would bother to learn a whole slew of commands for Windows. Generally speaking, people who want the power of a command line do not bother to deploy Windows and people who want Windows don't want half the features to be hidden in the command line. I realize that this is a direction Microsoft wants to go but how many people seriously use the command line tools for Windows 2003 (DHCP, DNS, Active Directory, Services, etc?)

Before Microsoft hopes to get anywhere with a command line, they need to clean up their directory structure, ax the registry and simplify things down quite a lot. Unix was built from the ground up with the assumption of configuring everything from the command line. The last time anything was really built for the command line in Microsofts world was during the days of DOS. Unix is far more than just passing parameters to applications through the command line.

RE: PowerShell with Windows
by BluenoseJake (2.68) on Thu 16th Nov 2006 00:13 UTC in reply to "PowerShell with Windows"
BluenoseJake Member since:
2005-08-11
Fans: 7

Vista's directory structure is much cleaner then XP's already, so I guess you're right

RE[2]: PowerShell with Windows
by Clinton (2.64) on Thu 16th Nov 2006 07:32 UTC in reply to "RE: PowerShell with Windows"
Clinton Member since:
2005-07-05
Fans: 1

But it isn't though.

I recently had two similar hard drive failures. One was on my Linux machine and the other was on a friend's Windows laptop (Sure his laptop is XP, but I've seen Vista builds and the directory structure, while better, is still problematic).

On Linux, I simply copied all the contents of my home directory to a portable hard drive, replace the bad drive, reinstalled Linux and copied everything back. I had to configure a couple of minor things a bit, but overall, it was a simple process.

On my friend's Windows machine, the only damage to files was done in the Windows System32 directory. Everything else was intact. However, it was almost impossible to restore his drive because things were sprawled out all over the system.

The first two things Microsoft could do to clean their directory structure would be have home directories and limit regular users ability to save anything outside of that, and get rid of the stupid alphabet partitions. They are retarded.

Edited 2006-11-16 07:36

RE[3]: PowerShell with Windows
by BluenoseJake (2.68) on Thu 16th Nov 2006 16:26 UTC in reply to "RE[2]: PowerShell with Windows"
BluenoseJake Member since:
2005-08-11
Fans: 7

You could have just did a repair install with a XPSP2 CD, that would have fixed his system32 directory, then ran windows update. No need to copy things to another drive, except to maybe backup data. Just because things work differently, does not make things better or worse, just different.

Also considering that I was comparing XP's filesystem layout to Vista's, your entire post is irrelevant. You also disagreed with me on the first sentence, then agreed with me 3 lines down. Please, make up your mind

RE[4]: PowerShell with Windows
by helio9000 (1.96) on Thu 16th Nov 2006 20:08 UTC in reply to "RE[3]: PowerShell with Windows"
helio9000 Member since:
2006-05-24
Fans: 0

Also, just for laughs, you could have just booted to the command prompt and fixed it with a command or two, from there.

RE[3]: PowerShell with Windows
by hobgoblin (2.32) on Fri 17th Nov 2006 21:39 UTC in reply to "RE[2]: PowerShell with Windows"
hobgoblin Member since:
2005-07-06
Fans: 0

"documents and settings"?

should contain any user data unless the user is using some pre win2k (or something like that) program.

RE: PowerShell with Windows
by Nelson (4.48) on Thu 16th Nov 2006 00:13 UTC in reply to "PowerShell with Windows"
Nelson Member since:
2005-11-29
Fans: 2

I believe any change to cmd.exe is welcome change. Windows has been lacking a functional shell. Just because it doesn't implement the "xx" standard of shell programming doesn't make it bad.

If you don't know by now, Microsoft hardly ever codes with Interop in mind (As far as other platforms go) and it will be a while since that changes.

I don't think there's anything wrong with the PowerShell syntax and it will allow Windows to become more community oriented. (Submitting Scripts to automate OS tasks)

There's been a bunch of community oriented stuff popping up. Gadgets, IE7 Addons, and now Powershell scripts?

If anything I'd call this an extremely good thing for Microsoft.

RE[2]: PowerShell with Windows
by n4cer (2.6) on Thu 16th Nov 2006 00:38 UTC in reply to "RE: PowerShell with Windows"
n4cer Member since:
2005-07-06
Fans: 5

It should also be noted that there's more to Windows management than cmd. PowerShell unifies cmd, WSH, WMIC, and more. Most people probably aren't writing batch language scripts to manage servers, but many do use the other above technologies interactively and in scripts.

PowerShell gives more access to the system, simplifies coding against existing technologies, and is more accessible than the previous technologies for new users. It's also going to be baked into MS' server products (Exchange and MOM first) and later the system itself, with MMC integration, cmd utilities being replaced with cmdlets and applications either built atop cmdlets or using them to more directly expose functionality to the shell.

Edited 2006-11-16 00:39

RE[2]: PowerShell with Windows
by Ookaze (2.8) on Thu 16th Nov 2006 10:41 UTC in reply to "RE: PowerShell with Windows"
Ookaze Member since:
2005-11-14
Fans: 2

If you don't know by now, Microsoft hardly ever codes with Interop in mind (As far as other platforms go) and it will be a while since that changes

Which breaks one of the most important feature of a shell : be compatible with at least Korn Shell.

I don't think there's anything wrong with the PowerShell syntax and it will allow Windows to become more community oriented. (Submitting Scripts to automate OS tasks)

That would be good but I dount it will, as PowerShell depends on .NET. Which means when .NET changes, it can make your shell change behaviour.
A shell should not depend on anything more than a C library. There's a reason it's called a shell, not a script language.

RE[3]: PowerShell with Windows
by Nelson (4.48) on Thu 16th Nov 2006 19:20 UTC in reply to "RE[2]: PowerShell with Windows"
Nelson Member since:
2005-11-29
Fans: 2

I don't think it'd change behavior persay but it'd simply either not work or be updated.

They're becoming more .NET oriented torwards the future and to be able to access .NET objects from the shell this decision was needed.

I think it adds functionality to be able to target both managed and unmanaged applications.

Of course I'm saying this from a C# coders prospective.

RE: PowerShell with Windows
by TBPrince (3) on Thu 16th Nov 2006 01:16 UTC in reply to "PowerShell with Windows"
TBPrince Member since:
2005-07-06
Fans: 3

A lots of software use MS command line tools. They're mostly needed for automation purposes, of course, as there is no other goal in using a command line tool vs a GUI for non-automation operations.

If you look carefully, many server softwares make broad usage of such tools. Sometimes you got aware of such usage if anything goes wrong and you have a log file to examine.

"Monad" is much more than a simple enhanced shell. Just to name one, while you can only pass text parameters to various Unix shells, you can pass complex objects to Monad / PowerShell scripts, paving the road to much more complex scripts.

RE[2]: PowerShell with Windows
by rajj (4.12) on Thu 16th Nov 2006 04:39 UTC in reply to "RE: PowerShell with Windows"
rajj Member since:
2005-07-06
Fans: 0

No. This is flat out wrong. There is no restriction on how programs can communicate with eachother on UNIX. In fact, this doesn't really have anything to do with the shell at all. Most UNIX programs pass text streams between eachother via pipes by _convention_. You could also pass arbitrarily complex "objects" using text. Hell, we could even be trendy, if we wanted, and use XML for the markup.

If you really wanted an object orriented shell on UNIX that communicates via binary blobs through rigid APIs, you could just run the python interpreter interactively.

RE[2]: PowerShell with Windows
by Ookaze (2.8) on Thu 16th Nov 2006 10:50 UTC in reply to "RE: PowerShell with Windows"
Ookaze Member since:
2005-11-14
Fans: 2

A lots of software use MS command line tools. They're mostly needed for automation purposes, of course, as there is no other goal in using a command line tool vs a GUI for non-automation operations

No other goal ? I see at least two others : headless administration and fast remote control.

If you look carefully, many server softwares make broad usage of such tools

That's because servers don't need a GUI to run ...

"Monad" is much more than a simple enhanced shell. Just to name one, while you can only pass text parameters to various Unix shells, you can pass complex objects to Monad / PowerShell scripts, paving the road to much more complex scripts

That's because the few input systems that we have, like the keyboard, only contains text on it.
I wonder how you input your complex objects to your commands without using text.
I also wonder what is the use for your complex objects, as we can already control pretty much anything with a basic Unix shell.

RE[2]: PowerShell with Windows
by sbenitezb (2.96) on Thu 16th Nov 2006 13:21 UTC in reply to "RE: PowerShell with Windows"
sbenitezb Member since:
2005-07-22
Fans: 2

""Monad" is much more than a simple enhanced shell. Just to name one, while you can only pass text parameters to various Unix shells, you can pass complex objects to Monad / PowerShell scripts, paving the road to much more complex scripts."

And there lies the problem. Who wants to code complex shell scripts? scripts have to be simple. Otherwise you should be using some programming language. You need to first understand the unix shell to assert something like that. The power of the unix shell is that you only need text, plain text, to use it.

You should read Mastering UNIX Shell scripting, from John Wiley and Sons.

RE[3]: PowerShell with Windows
by n4cer (2.6) on Thu 16th Nov 2006 19:39 UTC in reply to "RE[2]: PowerShell with Windows"
n4cer Member since:
2005-07-06
Fans: 5

And there lies the problem. Who wants to code complex shell scripts? scripts have to be simple. Otherwise you should be using some programming language. You need to first understand the unix shell to assert something like that. The power of the unix shell is that you only need text, plain text, to use it.

Scripts can be as simple or as complex as the task(s) you're trying to accomplish. If you want scripts that do one thing, and you feed the results someplace else, you're free to do so.

PowerShell doesn't preclude you from working with plain text. There simply is no need to do so most of the time, and you just create more work for yourself manually parsing and formating that text rather than letting the shell do the work for you. Though even with that type of workflow, you can still take advantage of the fact that you're working with strings.

RE[4]: PowerShell with Windows
by sbenitezb (2.96) on Thu 16th Nov 2006 21:55 UTC in reply to "RE[3]: PowerShell with Windows"
sbenitezb Member since:
2005-07-22
Fans: 2

"PowerShell doesn't preclude you from working with plain text. There simply is no need to do so most of the time, and you just create more work for yourself manually parsing and formating that text rather than letting the shell do the work for you. Though even with that type of workflow, you can still take advantage of the fact that you're working with strings."

But it doesn't promote text handling either. I wonder what kind of script you think you would be writing most of the time that doesn't use any text manipulation at all.

All in all, Windows doesn't use text files. It uses mostly binary files, so it's pretty rigid as you may see. In unix-like OS, all configuration and log files are just plain text you can parse with filter utilities. You don't have to manually open files, manipulate binary structures and all things associated. It's simple as sed -i 's/hard/simple/g' somefile and you are done. No need to know some obscure API for changing some class attributes.

I don't think that powershell will have any real use comparable to the unix shell. They are both different, but the unix shell is more flexible and that's what makes it successfull today. Microsoft's new toy doesn't bring anything new. If you are using a console, you are using text. If your shell doesn't support text handling easily, then it pretty much sucks.

RE[3]: PowerShell with Windows
by NotParker (-2) on Thu 16th Nov 2006 22:02 UTC in reply to "RE[2]: PowerShell with Windows"
NotParker Member since:
2006-06-01
Fans: 4

Who wants to code complex shell scripts?

People who want a choice?

Footprint
by nanobaka (2.5) on Thu 16th Nov 2006 01:10 UTC
nanobaka
Member since:
2006-03-16
Fans: 0

I downloaded Powershell and gave it try. It does seem much more powerful than the crappy cmd.exe, but why does it have to eat up 40mb of RAM? Is it because it runs on .Net? Geez.

RE: Footprint
by tmack (2.84) on Thu 16th Nov 2006 01:48 UTC in reply to "Footprint"
tmack Member since:
2006-04-11
Fans: 2

40 mb? That's practically nothing.

Although I am a java dev by trade, so I may be used to application bloat. ;)

RE[2]: Footprint
by Ookaze (2.8) on Thu 16th Nov 2006 10:45 UTC in reply to "RE: Footprint"
Ookaze Member since:
2005-11-14
Fans: 2

40 mb? That's practically nothing.
Although I am a java dev by trade, so I may be used to application bloat. ;)


Sure ! Because some people already complain when some shells takes 10 times less memory !
So saying 40 mb is nothing is nonsense : it's huge.
Must be one of the reasons why PowerShell is so slow.

RE[2]: Footprint
by sbenitezb (2.96) on Thu 16th Nov 2006 13:17 UTC in reply to "RE: Footprint"
sbenitezb Member since:
2005-07-22
Fans: 2

"40 mb? That's practically nothing."

Sure, compare it with the mere 2MB (RSS) bash uses...

Sue Microsoft
by sbenitezb (2.96) on Thu 16th Nov 2006 21:59 UTC
sbenitezb
Member since:
2005-07-22
Fans: 2

What about this http://powershell.sourceforge.net/ ?
Could they sue MS?

Powershelll virus
by devnull (1.84) on Thu 16th Nov 2006 22:01 UTC
devnull
Member since:
2005-07-06
Fans: 0

Waiting for the first Powershell virus?
No need look here...

http://news.com.com/2100-1002_3-6101106.html?part=rss&tag=61011...

Amazing....after 40 years of clean virus free Unix powershell, Microsoft does it again...unbelievable. DO NOT MIX .NET / ACTIVEX WITH ADMIN TOOLS!!!

Are there still admins out there that actually take MS software seriously?? i wonder..

Edited 2006-11-16 22:03

RE: Powershelll virus
by NotParker (-2) on Thu 16th Nov 2006 22:10 UTC in reply to "Powershelll virus"
NotParker Member since:
2006-06-01
Fans: 4

Waiting for the first Powershell virus?
No need look here...


Moron.

"The worm doesn't exploit a specific security hole in PowerShell. Instead, it abuses the product's ability to execute scripts by attempting to trick users into downloading and running malicious code."

v RE[2]: Powershelll virus
by devnull (1.84) on Thu 16th Nov 2006 22:20 UTC in reply to "RE: Powershelll virus"
RE[3]: Powershelll virus
by NotParker (-2) on Thu 16th Nov 2006 23:34 UTC in reply to "RE[2]: Powershelll virus"
NotParker Member since:
2006-06-01
Fans: 4

Most Windows users are indeed Morons like you...Its not about how you call it its about what it can do to "normal" users. Stay ignorant. Stay believing in it. Good Luck!

"This is a proof-of-concept virus whose "Worm" replication mode is just a simple file copy and could have been implemented in any language which supports copying files. The fact that the worm is written in PowerShell rather than another scripting language or even as an executable has actually made it even harder for this virus to spread since the additional security features around PowerShell scripts result in many additional steps for the user to perform before an infection can take place."

Moron.

RE[4]: Powershelll virus
by devnull (1.84) on Thu 16th Nov 2006 23:47 UTC in reply to "RE[3]: Powershelll virus"
devnull Member since:
2005-07-06
Fans: 0

You only read part of the story. Better read the whole story and try to actually think about the possibilities.
As much as i disagree with you i would never call you a m!r!n beause of that. Makes you look very dumb.

As i sad before keep ignorant! Believe waht you want i do not care.

Uh...yeah
by tmack (2.84) on Thu 16th Nov 2006 22:26 UTC
tmack
Member since:
2006-04-11
Fans: 2

I installed PowerShell on a vm....

It's a joke.

Is this really supposed to compete with the shells used in a Linux system? I mean, on Linux I can do ANYTHING from the command line.

With this... I can move files around.

High Five!

RE: Uh...yeah
by NotParker (-2) on Thu 16th Nov 2006 23:22 UTC in reply to "Uh...yeah"
NotParker Member since:
2006-06-01
Fans: 4

With this... I can move files around.

I'm not a Powershell expert. Barely touched it so far.

Heres a one liner that would find the top 5 mailboxes by size (via WMI) if you had an exchange 2003 server called exchgbox:

get-wmiobject -class Exchange_Mailbox -Namespace ROOTMicrosoftExchangev2 -ComputerName exchgbox | sort Size -desc | Select -first 5

RE[2]: Uh...yeah
by stestagg (2.76) on Fri 17th Nov 2006 02:00 UTC in reply to "RE: Uh...yeah"
stestagg Member since:
2006-06-03
Fans: 2

I *love* WMI. Just as an example of why, try to find out something about WMI.

try: Get-WmiObject -list

...Now, I know there's a class method to Win32_Dynamically_re-flash_the_bios_to_play_the_National_Anthem_on_boo t
somewhere in the list, but where is it? and what does it do?

It's a good thing that Microsoft tends not to care about case, or I'd go mad trying to get all the capitals in the right places.

RE[3]: Uh...yeah
by hobgoblin (2.32) on Fri 17th Nov 2006 21:44 UTC in reply to "RE[2]: Uh...yeah"
hobgoblin Member since:
2005-07-06
Fans: 0

tabcomplete ;)

RE[4]: Uh...yeah
by stestagg (2.76) on Fri 17th Nov 2006 21:55 UTC in reply to "RE[3]: Uh...yeah"
stestagg Member since:
2006-06-03
Fans: 2

One of the great things about ZSH is that it has dynamic tabcompletion. So If I'm copyinga file toaremote computer (using scp), pressing tab when choosing the remote directory will cause ZSH to query the remote system and provide directory autocompletion.