PowerShell Cookbook

Search

Categories

 

On this page

Archive

Blogroll

Disclaimer
I work for Microsoft.

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 257
This Year: 8
This Month: 2
This Week: 1
Comments: 785

Sign In

 Thursday, December 07, 2006
Friday, December 08, 2006 12:31:30 AM (Pacific Standard Time, UTC-08:00) ( )
One of the more common questions we get from people interested in PowerShell is "how do I get started?" They see  examples of PowerShell weilding its considerable strength, and are often intimidated by a perceived learning curve. It doesn't have to be that way, though — PowerShell is easy to start playing with, and easy to continue learning.

First of all, you’ll want to download PowerShell. If you visit http://www.microsoft.com/PowerShell, you’ll get to the PowerShell homepage that lists an enormous number of resources. One of the first resources is a link to the download location.

Next, just start the shell and start exploring. The DOS commands you may (or may not) be used to still work: dir, cd, ipconfig, etc. Many of the UNIX commands you may (or may not) be used to  still work: ls, cd, ps, etc.

Then, take a dip into the awesome documentation that PowerShell ships with. The PowerShell menu on your start menu links to them directly:

  • Getting started: A 32-page overview of PowerShell and its core concepts
  • Quick reference: A 2-page summary of PowerShell’s scripting language
  • User Guide: A 116-page user guide for PowerShell. Perhaps unbelievable but true, it is a really useful book that we include for free with the product.
  • Help content: A large amount of help is available through the Get-Help cmdlet  -- see both the Getting Started documentation and User Guide for more information about this powerful command.

However, some people just like to sit back and have their learning delivered to them. You’re in good company there, too, as there are plenty of those resources.

Ars Technica wrote probably the best online overview, back when PowerShell was called "Monad": http://arstechnica.com/guides/other/msh.ars/

There are also interviews, videos, screencasts, and more:

Once you start exploring deeper, there is a fantastic opportunity for continual learning:

And, did I mention that this hasn’t cost you a thing yet?

If you want books or individualized training, you continue to have many options:

  • O’Reilly’s PowerShell Cookbook: http://www.leeholmes.com/blog/PowerShellCookbookNowAvailable.aspx
    584 pages of PowerShell recipes that focus squarely on showing you how to use PowerShell to get your job done. It builds on a huge base of distilled knowledge, and includes:
    • Solutions to the most popular and searched-for TechNet / Script Center topics
    • Scripts that address the most common community, newsgroup, and new user questions
    • Scripts that wrap around and hide the complexity of advanced (but very useful) PowerShell scripting techniques
    • Task-based introduction to all of PowerShell’s major features
  • Bruce Payette's PowerShell in Action: http://www.amazon.com/Windows-Powershell-Action-Bruce-Payette/dp/1932394907
    The best in-depth book for the scripting language you could ask for, from one of its co-designers.
  • O’Reilly’s PowerShell Quick Reference: http://www.leeholmes.com/blog/OReillyPowerShellQuickReferenceNowAvailable.aspx
    My 120-page guide (in PDF format) that provides the essential reference material for your day-to-day use of PowerShell.  With a concise explanation at your fingertips, there is no need to memorize esoteric topics like regular expressions and string formatting specifiers. Aside from its straight factual reference material, the Quick Reference also provides an enormous amount of value by distilling large bodies of practical knowledge into their most usable forms, including: the most useful classes from the .NET Framework, useful WMI classes, and useful COM automation objects.
  • More books: http://www.amazon.com/s/?url=search-alias%3Dstripbooks&field-keywords=PowerShell
  • Internet serach for “PowerShell  training”

So, jump in and enjoy the revolution!

Comments [4] | | # 
Friday, December 08, 2006 2:11:48 PM (Pacific Standard Time, UTC-08:00)
When I try to install Powershell on my Vista RC2 system (Build 5744), it pops up a dialog that says "this update does not apply to your system". (And yes I did download the Vista x86 package)

Any idea on how to get this running?
Dustin
Friday, December 08, 2006 4:14:03 PM (Pacific Standard Time, UTC-08:00)
Hi Dustin;

The Vista package is designed for Vista RC1. We install as a Windows component, so the installer works with a specific build of the operating system. This is something that we're working hard to address -- keep an eye on http://blogs.msdn.com/powershell/archive/2006/11/15/windows-powershell-windows-vista.aspx and http://blogs.msdn.com/PowerShell for updates on the Vista situation. We plan to release an installer package for Vista RTM by the end of January.

A few people have been able to get PowerShell running on Vista by installing it by hand (which is obviously an unsupported scenario.) If you decide to take their approach, I encourage you to upgrade to the official build as soon as it is released (so that your PowerShell installation can still be serviced through the normal and official mechanisms.)
Thursday, April 05, 2007 12:06:53 PM (Pacific Daylight Time, UTC-07:00)
"When I try to install Powershell on my Vista RC2 system (Build 5744), it pops up a dialog that says "this update does not apply to your system". (And yes I did download the Vista x86 package)

Any idea on how to get this running?"

Did you disable the Windows Modules Installer service? Try setting it back to Manual
DA
Thursday, April 05, 2007 2:11:19 PM (Pacific Daylight Time, UTC-07:00)
Here is the link to install PowerShell on Windows Vista: http://www.microsoft.com/downloads/details.aspx?familyid=C6EF4735-C7DE-46A2-997A-EA58FDFCBA63&displaylang=en. This is PowerShell RTM on Vista RTM. There are no PowerShell builds for Vista Beta 2.
Name
E-mail
Home page

Comment (Some html is allowed: b, blockquote@cite, em, i, strike, strong, sub, super, u)  

Enter the code shown (prevents robots):