Learning Curve
Despite some experts' reservations about PowerShell's complexity, readers seem eager for the challenge: "It will make the command line management easier, but it will require learning a new paradigm. It will be worth the learning curve."

Jeffrey insists, "Most people feel it's pretty easy to get up and running in half an hour. We've produced alias files for the DOS community and the UNIX community to facilitate the transition from existing environments. That greatly eases the adoption. You learn the key concepts, and then you'll just teach yourself the system. That was my experience with VMS. I struggled and thought 'Oh, this isn't UNIX!' I didn't like it. Once I relaxed and tried to understand, it didn't take long. In about 20 minutes, you realize everything in PowerShell has the same syntax. In another 10 minutes, you realize all the commands share a consistent set of parameters and each command supports a subset of those parameters. Then you can manage anything. The key is to get the naming. Our goal was to manage 80 percent of the system with fewer than 50 verbs. It was very hard to do. So learn those verbs. Guess those verbs and you're going to be right."

Samples and Examples
You can find a plethora of CLI and Visual Basic (VB) scripts today, which means you don't have to reinvent the wheel to solve common problems. How will PowerShell address the need for scripts that users can easily adapt for their environment?

Jeffrey replied, "All that previous stuff continues to work. You can invoke a VB script from PowerShell. You don't have to convert that script. And just running a batch script or a VB script from PowerShell makes it two to 10 times more powerful because you can now do traditional UNIX-style scripting: Take its output, parse its output, connect it with other things."

What about native PowerShell sample scripts? "The TechNet Script Center now has a PowerShell scripting environment," Jeffrey pointed out. "Lots of that material is being generated. Our role is encouraging people, making sure they have the information to succeed. That means both having good base documentation, as well as providing in our blog the details of what's really going on."

The Village People
Jeffrey sees community as key to Power-Shell's success. He said, "One joke is that 'it takes a village' to manage a system."

It also takes a village to hone a new tool. "We worked with customers and partners to find the most important things to deliver in version 1. But I learn far more from what you don't like than things you do. A concrete example: Before [the Microsoft Management Summit last April], I contacted Greg Ramsey, who was doing a session on scripting for SMS using VBScript. He didn't know about PowerShell, so I asked him to try it. He loved it and incorporated it into his talk and labs. People asked Greg if they should use VBScript or PowerShell. Greg said, 'If you're doing a certain type of activity, definitely use PowerShell. It's much more powerful. But if you're doing another type of activity, use VBScript, because PowerShell's WMI support isn't as good as VBScript's.' Whoa! That's great information. So today we'll be [adding to PowerShell] all the necessary [WMI] support. We had closed the release down, but we opened it back up [to address the PowerShell shortcomings Greg identified]."

The appeal of PowerShell seems obvious. What's not obvious is whether its complexity will allow wide success, especially for administrators who don't do much scripting. Let me know what you think.

End of Article

Prev. page     1 [2]     next page -->



You must log on before posting a comment.

If you don't have a username & password, please register now.

Reader Comments

Powershell is a very powerful command line and scripting environment. The learning curve is not as steep as made out because it is possible to perform a lot of actions with the built in cmdlets rather than needing to write scripts as such. This is especiallly true of the version that ships with Exchnage 2007. There are a huge number of cmdlets for accessing Exchange. In addition the way the new MMC shows the PowerShell script it is actually using will give a huge boost to learning. It is always easier to modify an existing script rather than create from scratch.

For a v1 technology Powershell is superb - its probably one of the best pieces of technology MS have ever produced

RichS

Article Rating 4 out of 5

Thanks, Rich! It's great to hear your experience with PowerShell. I agree that it's extremely cool. I'd love to hear from other people who are using it, too.

KarenLForster

Article Rating 3 out of 5

What learning curve?! I am a non scripting administrator eager to learn scripting. You get a cmd compatible environment where everything you normally do there works fine here too. And that same interface works with Powerscript so you can learn while doing your job. It's like cmd on steroids! Plus you get the language factor. Microsoft is finally getting things right with documentation. No not everyone speaks English and if I want to share this with my fellow workers I need local language quality learning material, documentation and interface. Microsoft is definitely putting a lot of effort into narrowing the gap non English speaking Windows users normally have where it is still hard to find decent translations for WSH documentation. Getting new functionalities of Windows to work on non English Windows used to be hell because you would get part of the interface in one language and part in another or not get any documentation and similar sort of problems. Good job Microsoft for getting things done right. I'm really looking forward to learning Powerscript.

rickyam

Article Rating 5 out of 5

Will PowerShell do anything to make a tool like Automation Anywhere obsolete? Automation Anywhere makes it very easy to perform tedious website logins, for example. Will PowerShell or Vista or anything else that Microsoft is offering come close to offering this functionality? Thank you.

amozart

Article Rating 5 out of 5

 
 

ADS BY GOOGLE