PowerShell for Windows Admins

Jan 2 2011   5:23AM GMT

Seven Habits of Highly Effective PowerShellers

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Some thoughts on highly effective PowerShell users. They:

  1. Get the job done. This isn’t as obvious as it seems. PowerShell is an automation tool. Use it.  Don’t agonise over the last bit of polishing for your script. Get it into use and gain the benefits. It can always be modified another day. Remember the 80:20 rule.  You’ll get 80% of the benefits with 20% of the effort. 
  2. Don’t forget interactive use of cmdlets. An awful lot of useful work can be performed by using cmdlets. This is especially true if working with Exchange or remote systems (don’t forget WMI)
  3. Use the pipeline. PowerShell is about the pipeline. Use the inbuilt power as much as you can but don’t forget habit 1
  4. Use scripts, functions and modules. This is all about reuse.  Don’t re-write every time.  Modules are great for organising your scripts and loading as required.
  5. Use comments You will see this one in every scripting guide.  You need to be able to understand what you meant to do with the script. This is especially important if you are sharing your scripts
  6. Write PowerShell not VBScript A lot of PowerShell examples are VBScript that has been translated directly into PowerShell. Don’t bring the VBScript habits into PowerShell – but don’t forget habit 1
  7. Are part of the PowerShell community.  By this I mean that they use the PowerShell community to find out how to do things and where possible they contribute back to the community.

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: