• Complain

Don Jones - Learn PowerShell Toolmaking in a Month of Lunches

Here you can read online Don Jones - Learn PowerShell Toolmaking in a Month of Lunches full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2012, publisher: Manning Publications, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Don Jones Learn PowerShell Toolmaking in a Month of Lunches
  • Book:
    Learn PowerShell Toolmaking in a Month of Lunches
  • Author:
  • Publisher:
    Manning Publications
  • Genre:
  • Year:
    2012
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Learn PowerShell Toolmaking in a Month of Lunches: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Learn PowerShell Toolmaking in a Month of Lunches" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Summary

Packed with hands-on labs to reinforce what youre learning, Learn PowerShell Toolmaking in a Month of Lunches is the best way to learn PowerShell scripting and toolmaking. Just set aside one hour a daylunchtime would be perfectfor each self-contained lesson. Youll move quickly through core scripting concepts and start working on four real-world, practical tools. Each chapter adds more functionality, including custom formatting, error handling, parameterized input, input validation, help files and documentation, and more.

About this Book

You dont have to be a software developer to build PowerShell tools. With this book, a PowerShell user is a step away from becoming a proficient toolmaker. Learn PowerShell Toolmaking in a Month of Lunches is the best way to learn PowerShell scripting and toolmaking in just one hour a day. Its packed with hands-on labs to reinforce what youre learning. Its an easy-to-follow guide that covers core scripting concepts using four practical examples. Each chapter builds on the previous one as you add custom formatting, error handling, input validation, help files, and more.

Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.

Whats Inside

  • Build your own administrative tools
  • Learn by doing with hands-on labs
  • Make scripts that feel like native PowerShell cmdlets

This book does not assume you are a programmer. Experience using PowerShell as a command-line interface is helpful but not required.

About the Authors

Don Jones is a PowerShell MVP, speaker, and trainer. Jeffery Hicks is a PowerShell MVP and an independent consultant, trainer, and author. Don and Jeff coauthored Learn Windows PowerShell 3 in a Month of Lunches, Second Edition (Manning 2012) and PowerShell in Depth (Manning 2013).

Table of Contents

PART 1 INTRODUCTION TO TOOLMAKING
  1. Before you begin
  2. PowerShell scripting overview
  3. PowerShells scripting language
  4. Simple scripts and functions
  5. Scope
  6. PART 2 BUILDING AN INVENTORY TOOL
  7. Tool design guidelines
  8. Advanced functions, part 1
  9. Advanced functions, part 2
  10. Writing help
  11. Error handling
  12. Debugging techniques
  13. Creating custom format views
  14. Script and manifest modules
  15. Adding database access
  16. Interlude: creating a new tool 157
  17. PART 3 ADVANCED TOOLMAKING TECHNIQUES
  18. Making tools that make changes

  19. Creating a custom type extension

  20. Creating PowerShell workflows

  21. Troubleshooting pipeline input

  22. Using object hierarchies for complex output
  23. Globalizing a function
  24. Crossing the line: utilizing the .NET Framework
  25. PART 4 CREATING TOOLS FOR DELEGATED ADMINISTRATION
  26. Creating a GUI tool, part 1: the GUI
  27. Creating a GUI tool, part 2: the code
  28. Creating a GUI tool, part 3: the output
  29. Creating proxy functions
  30. Setting up constrained removing endpoints
  31. Never the end

Don Jones: author's other books


Who wrote Learn PowerShell Toolmaking in a Month of Lunches? Find out the surname, the name of the author of the book and a list of all author's works by series.

Learn PowerShell Toolmaking in a Month of Lunches — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Learn PowerShell Toolmaking in a Month of Lunches" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Learn PowerShell Toolmaking in a Month of Lunches
Don Jones and Jeffrey Hicks

Learn PowerShell Toolmaking in a Month of Lunches - image 1

Copyright

For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact

Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 261 Shelter Island, NY 11964 Email: orders@manning.com

2013 by Manning Publications Co. All rights reserved.

No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps.

Picture 2 Recognizing the importance of preserving what has been written, it is Mannings policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine.

Learn PowerShell Toolmaking in a Month of Lunches - image 3Manning Publications Co.20 Baldwin RoadPO Box 261Shelter Island, NY 11964Development editor: Cynthia KaneTechnical proofreader: James BerkenbileCopyeditor: Linda RecktenwaldProofreader: Maureen SpencerTypesetter: Gordan SalinovicCover designer: Leslie Haimes

Printed in the United States of America

1 2 3 4 5 6 7 8 9 10 MAL 17 16 15 14 13 12

Brief Table of Contents
Table of Contents
Preface

I have a unique outlook on scripting. In my first career as an aircraft mechanic, I worked with machinistsfolks who used tools and dies to carve metal into aircraft parts. A step above machinist, career-wise, was the tool and die maker. Those were the highly-trained folks who actually created the tools and dies used by machinists. Folks aspired to be toolmakers, as they were nicknamed, because it was considered a bit cushier job. You didnt work on the hot shop floor around screaming machines and flying shards; you worked in a cool office, on a computer-aided design (CAD) station. You wore nicer clothes.

It turns out that PowerShell can be treated in much the same way. Imagine working in a nice, cool office, with no users demanding your attention. You cruise through your organizations help desk ticketing system, looking for recurring problems that eat up a lot of time, or that end up having to be solved by higher-tier technical staffers. You write tools, in PowerShell, to solve those problems. You deploy those tools to the help desk and your lower-tier colleagues. They can now solve those problems more quickly and more consistentlyand with less involvement from you. Your job is cushier. Maybe you get paid more, too. Sounds awesome, right?

Itll happen. That same pattern has repeated itself, over and over, throughout the history of IT, in almost every corner of IT except the Microsoft space, mainly because we havent had the right tool-making tools. Well, we do now: Windows PowerShell. If youre ready to stop thinking like a button-clicker and command-runner, and to start thinking like a toolmaker, youve picked up the right book.

D ON J ONES

About this Book

Most of what youll need to know about this book is covered in , but there are a few things that we should mention up front.

First of all, if you plan to follow along with our examples and complete the hands-on exercises, youll need a virtual machine or computer running Windows 8 or Windows Server 2012. We cover that in more detail in . You can get by with Windows 7, but youll miss out on a few of the hands-on labs.

Second, be prepared to read this book from start to finish, covering each chapter in order. Again, this is something well explain in more detail in , but the idea is that each chapter introduces a few new things that you will need in subsequent chapters. You shouldnt try to push through the whole bookstick with the one chapter per day approach. The human brain can only absorb so much information at once, and by taking on PowerShell in small chunks, youll learn it a lot faster and more thoroughly.

Third, this book contains a lot of code snippets. Most of them are quite short, so you should be able to type them easily. In fact, we recommend that you do type them, since doing so will help reinforce an essential PowerShell skill: accurate typing! Longer code snippets are given in listings and are available for download at http://Morelunches.com (just click on this books cover image and look for the Downloads section).

That said, there are a few conventions that you should be aware of. Code will always appear in a special font, just like this example:

Get-WmiObject class Win32_OperatingSystemPicture 4 computerName SERVER-R2

That example also illustrates the line-continuation character used in this book. It indicates that those two lines should actually be typed as a single line in PowerShell. In other words, dont hit Enter or Return after Win32_OperatingSystemkeep right on typing. PowerShell allows for very long lines, but the pages of this book can only hold so much.

Sometimes, youll also see code font within the text itself, such as when we write Get-Command. That lets you know that youre looking at a command, parameter, or other element that you would type within the shell.

Fourth is a tricky topic that well bring up again in several chapters: the backtick character (`). Heres an example:

Invoke-Command scriptblock { Dir } `-computerName SERVER-R2,localhost

The character at the end of the first line isnt a stray bit of inkits a real character that you would type. On a U.S. keyboard, the backtick (or grave accent) is usually near the upper left, under the Escape key, on the same key as the tilde character (~). When you see the backtick in a code listing, type it exactly as is. Furthermore, when it appears at the end of a lineas in the preceding examplemake sure that its the very last character on that line. If you allow any spaces or tabs to appear after it, the backtick wont work correctly, and neither will the code example.

Note

Frankly, itd be easier to just download the code samples and not worry about typing them in. Theyre posted at http://MoreLunches.comjust click on this books cover image and head for the Downloads section.

You can also download the code from the publishers website at www.manning.com/LearnPowerShellToolmakinginaMonthofLunches.

Finally, well occasionally direct you to Internet resources. Where those URLs are particularly long and difficult to type, weve replaced them with Manning-based shortened URLs that look like ).

Author Online

The purchase of Learn PowerShell Toolmaking in a Month of Lunches includes access to a private forum run by Manning Publications where you can make comments about the book, ask technical questions, and receive help from the authors and other users. To access and subscribe to the forum, point your browser to www.manning.com/LearnPowerShellToolmakinginaMonthofLunches and click the Author Online link. This page provides information on how to get on the forum once you are registered, what kind of help is available, and the rules of conduct in the forum.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Learn PowerShell Toolmaking in a Month of Lunches»

Look at similar books to Learn PowerShell Toolmaking in a Month of Lunches. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Learn PowerShell Toolmaking in a Month of Lunches»

Discussion, reviews of the book Learn PowerShell Toolmaking in a Month of Lunches and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.