Windows PowerShell Cookbook, 3rd Edition
The Complete Guide to Scripting Microsoft's Command Shell
Publisher: O'Reilly Media
Final Release Date: December 2012
Pages: 1036

How do you use Windows PowerShell to navigate the filesystem, manage files and folders, or retrieve a web page? This introduction to the PowerShell language and scripting environment provides more than 400 task-oriented recipes to help you solve all kinds of problems. Intermediate to advanced system administrators will find more than 100 tried-and-tested scripts they can copy and use immediately.

Updated for PowerShell 3.0, this comprehensive cookbook includes hands-on recipes for common tasks and administrative jobs that you can apply whether you’re on the client or server version of Windows. You also get quick references to technologies used in conjunction with PowerShell, including format specifiers and frequently referenced registry keys to selected .NET, COM, and WMI classes.

  • Learn how to use PowerShell on Windows 8 and Windows Server 2012
  • Tour PowerShell’s core features, including the command model, object-based pipeline, and ubiquitous scripting
  • Master fundamentals such as the interactive shell, pipeline, and object concepts
  • Perform common tasks that involve working with files, Internet-connected scripts, user interaction, and more
  • Solve tasks in systems and enterprise management, such as working with Active Directory and the filesystem
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyWindows PowerShell Cookbook, 3rd Edition
 
4.6

(based on 5 reviews)

Ratings Distribution

  • 5 Stars

     

    (4)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (1)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

80%

of respondents would recommend this to a friend.

Pros

  • Helpful examples (4)
  • Accurate (3)
  • Concise (3)
  • Easy to understand (3)
  • Well-written (3)

Cons

    Best Uses

    • Expert (4)
    • Intermediate (4)
      • Reviewer Profile:
      • Developer (3)

    Reviewed by 5 customers

    Sort by

    Displaying reviews 1-5

    Back to top

     
    5.0

    A must have book for any PowerShell dev.

    By Dillie-O

    from Prescott, AZ

    About Me Developer

    Verified Reviewer

    Pros

    • Concise
    • Easy to understand
    • Helpful examples

    Cons

      Best Uses

      • Expert
      • Intermediate
      • Novice
      • Student

      Comments about oreilly Windows PowerShell Cookbook, 3rd Edition:

      I've become an increasing fan of Windows PowerShell. It's additional use of variables, scripts, and libraries opens up doors to some powerful scripting options that I need. I'm working on creating some deployment scripts for web applications I maintain across various web servers, and simple batch files wouldn't fit the bill. Having worked a little bit with PowerShell, I really needed something that would provide a reference guide for all the tasks I wanted to accomplish. I also needed to learn a bit more about the fundamental concepts and features of PowerShell itself. Windows PowerShell Cookbook, 3rd Edition by Lee Holmes provides that provides the examples and reference guide necessary for nearly all of my PowerShell needs.

      Like most "cookbook" style O'Reilly books, the first chapter of the book provides an brief overview of Windows PowerShell. It outlines the core concepts of structured commands (also known as cmdlets) and how you can use deep object integration (you can grab the entire notepad application process as a variable) with PowerShell. Other topics like ad-hoc scripting (chaining PowerShell commands at the command prompt) are also covered as well.

      From there, the book expands to cover specific tasks and the PowerShell code to execute them. Each task (or recipe) provides a top level explanation, execution examples (and sometimes expected output), and the full code itself. This allows you to easily copy and paste (code is available online) these scripts and add them as your own for your work.

      What's really nice is that the recipes progress in complexity as well as give you some "cooking directions" about what is happening. While the first couple of chapters give you recipes dealing with the fundamentals, the subsequent chapters deal with pipelines (taking the results of one command and sending it to another), variables, looping, and so on. That way complete beginners (such as myself) can build their knowledge of of PowerShell without feeling completely lost.

      By the end of the book, you will have recipes for Internet enabled scripts (pushing files to a remote server), creating zip archives, and working with user input to help dictate the names of files/folders that are to be modified. All of this is exactly what I need to create my deployment scripts for my sites.

      Windows PowerShell Cookbook, 3rd Edition is an essential book to any programmer. It is structured in a way that beginners can read through the book and build up their skills along the way. Veteran developers can use it as a handy reference guide, complete with fully functional samples. It is a must have book for anybody working with Windows PowerShell.

       
      5.0

      Recipes For Success

      By jeffa00

      from Atlanta

      About Me Developer

      Verified Reviewer

      Pros

      • Accurate
      • Comprehensive
      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Expert
        • Intermediate

        Comments about oreilly Windows PowerShell Cookbook, 3rd Edition:

        I would never tell someone that one of the Cookbook series books should be their first or only book on a topic, but once they are past the beginner stage, I highly recommend them.

        This book is no exception. If you are comfortable with the basics, this book is an invaluable resource.

        Rather than walk you through the process of learning PowerShell, it serves as a reference when you need to know how an experienced PowerShell user would solve a specific problem. Often it may not be the exact problem you are trying to solve, but you can usually find something close that will show you related principles.

         
        5.0

        Very Nice

        By MySetDancer

        from California

        About Me DBA

        Pros

        • Accurate
        • Helpful examples
        • Well-written

        Cons

          Best Uses

          • Expert
          • Intermediate

          Comments about oreilly Windows PowerShell Cookbook, 3rd Edition:

          This is not an intro text and I am using it to augment the MSDN site (which rates poorly). It has all sorts of fine examples which I have twisted into useful tools. Powershell is the ticket when it comes to moving files around, copying backups, and other tasks. And it runs from SQL Server Agent, which makes it easy to implement as a DBA.

          It was a real shock to learn that each version/release of Powershell is different, and PS code is not backwards-compatible so some code in this book will not run on all versions of Powershell. Rats!

          The book is usually easy to understand but it assumes that you are already .NET and COM literate. A section on EXCEL automation would really help me!

          (2 of 7 customers found this review helpful)

           
          3.0

          Teaching

          By J. W. Raper

          from Tulsa, Oklahoma

          Verified Reviewer

          Pros

            Cons

            • Difficult to understand
            • Not comprehensive enough

            Best Uses

              Comments about oreilly Windows PowerShell Cookbook, 3rd Edition:

              It is regrettable that in the majority authors create to impress their peers rather than teach their audience. I am confident that at a point in the future I may very well be impressed with this authors work; at present I am too ignorant to be impressed.

              (2 of 2 customers found this review helpful)

               
              5.0

              Great Book to have with lots of goodies

              By MaxT

              from Port St. Lucie, FL

              About Me Developer, Educator, Sys Admin

              Pros

              • Accurate
              • Concise
              • Easy to understand
              • Helpful examples
              • Well-written

              Cons

                Best Uses

                • Expert
                • Intermediate
                • Novice
                • Student

                Comments about oreilly Windows PowerShell Cookbook, 3rd Edition:

                Lee Homes and his collaborators have done it. This book is a Keeper. Loaded with tons of valuable samples that will keep you glued to this book. Now that PowerShell version 3.0 is out this book is the Bible of Samples. Get it and you won't be dissapointed.

                Displaying reviews 1-5

                Back to top

                 
                Buy 2 Get 1 Free Free Shipping Guarantee
                Buying Options
                Immediate Access - Go Digital what's this?
                Ebook: $50.99
                Formats:  DAISY, ePub, Mobi, PDF
                Print & Ebook: $65.99
                Print: $59.99