Book description
Learn Windows PowerShell in a Month of Lunches, Third Edition is an innovative tutorial designed for busy IT professionals. This updated edition covers PowerShell features that run on Windows 7, Windows Server 2008 R2 and later, PowerShell v3 and later, and includes v5 features like PowerShellGet.
About the Technology
PowerShell is both a scripting language and an administrative shell that lets you control and automate nearly every aspect of Windows. It accepts and executes commands interactively and you can write scripts to manage most Windows servers like Exchange, IIS, and SharePoint, as well as online services like Azure and Office 365.
About the Book
Learn Windows PowerShell in a Month of Lunches, Third Edition is an innovative tutorial designed for busy IT professionals. Just set aside one hour a day - lunchtime would be perfect - for a month, and you'll be automating Windows tasks faster than you ever thought possible. This updated edition covers PowerShell features that run on Windows 7, Windows Server 2008 R2 and later, PowerShell v3 and later, and includes v5 features like PowerShellGet.
What's Inside
- Learn PowerShell from the beginning, no experience required!
- Covers PowerShell v3 and up, Windows 7, and Windows Server 2008 R2 and later
- Each lesson takes you an hour or less
About the Reader
Experience with Windows administration is helpful. No programming or scripting experience needed.
About the Authors
Veteran PowerShell MVPs Don Jones and Jeffery Hicks bring years as successful trainers to this concise, easy-to-follow book.
Quotes
Superb...full of real-world examples, this book is an IT specialist's best friend.
- Olivier Deveault, Voxco Group
Your key to learning Windows PowerShell.
- Noreen Dertinger, Dertinger Informatics
A must-have...both novice and expert will benefit from this book.
- Tiklu Ganguly, Mazik Global
Learn PowerShell fundamentals from the experts.
- James Berkenbile, Berkenbile Consulting
Publisher resources
Table of contents
- Learn Windows PowerShell in a Month of Lunches, Third Edition
- Copyright
- Brief Table of Contents
- Table of Contents
- Preface
- Acknowledgments
- About this Book
- About the Authors
- Chapter 1. Before you begin
- Chapter 2. Meet PowerShell
- Chapter 3. Using the help system
-
Chapter 4. Running commands
- 4.1. Not scripting, but running commands
- 4.2. The anatomy of a command
- 4.3. The cmdlet naming convention
- 4.4. Aliases: nicknames for commands
- 4.5. Taking shortcuts
- 4.6. Cheating a bit: Show-Command
- 4.7. Support for external commands
- 4.8. Dealing with errors
- 4.9. Common points of confusion
- 4.10. Lab
- 4.11 Lab Answers
- Chapter 5. Working with providers
- Chapter 6. The pipeline: connecting commands
-
Chapter 7. Adding commands
- 7.1. How one shell can do everything
- 7.2. About product-specific “management shells”
- 7.3. Extensions: finding and adding snap-ins
- 7.4. Extensions: finding and adding modules
- 7.5. Command conflicts and removing extensions
- 7.6. On non-Windows operating systems
- 7.7. Playing with a new module
- 7.8. Profile scripts: preloading extensions when the shell starts
- 7.9. Getting modules from the internet
- 7.10. Common points of confusion
- 7.11. Lab
- 7.12. Lab answers
-
Chapter 8. Objects: data by another name
- 8.1. What are objects?
- 8.2. Understanding why PowerShell uses objects
- 8.3. Discovering objects: Get-Member
- 8.4. Using object attributes, or properties
- 8.5. Using object actions, or methods
- 8.6. Sorting objects
- 8.7. Selecting the properties you want
- 8.8. Objects until the end
- 8.9. Common points of confusion
- 8.10. Lab
- 8.11. Lab answers
-
Chapter 9. The pipeline, deeper
- 9.1. The pipeline: enabling power with less typing
- 9.2. How PowerShell passes data down the pipeline
- 9.3. Plan A: pipeline input ByValue
- 9.4. Plan B: pipeline input ByPropertyName
- 9.5. When things don’t line up: custom properties
- 9.6. Parenthetical commands
- 9.7. Extracting the value from a single property
- 9.8. Lab
- 9.9. Further exploration
- 9.10. Lab answers
-
Chapter 10. Formatting—and why it’s done on the right
- 10.1. Formatting: making what you see prettier
- 10.2. Working with the default formatting
- 10.3. Formatting tables
- 10.4. Formatting lists
- 10.5. Formatting wide lists
- 10.6. Creating custom columns and list entries
- 10.7. Going out: to a file, a printer, or the host
- 10.8. Another out: GridViews
- 10.9. Common points of confusion
- 10.10. Lab
- 10.11. Further exploration
- 10.12. Lab answers
- Chapter 11. Filtering and comparisons
- Chapter 12. A practical interlude
-
Chapter 13. Remote control: one-to-one, and one-to-many
- 13.1. The idea behind remote PowerShell
- 13.2. WinRM overview
- 13.3. Using Enter-PSSession and Exit-PSSession for one-to-one remoting
- 13.4. Using Invoke-Command for one-to-many remoting
- 13.5. Differences between remote and local commands
- 13.6. But wait, there’s more
- 13.7. Remote options
- 13.8. Common points of confusion
- 13.9. Lab
- 13.10. Further exploration
- 13.11. Lab answers
- Chapter 14. Using Windows Management Instrumentation and CIM
-
Chapter 15. Multitasking with background jobs
- 15.1. Making PowerShell do multiple things at the same time
- 15.2. Synchronous vs. asynchronous
- 15.3. Creating a local job
- 15.4. WMI, as a job
- 15.5. Remoting, as a job
- 15.6. Getting job results
- 15.7. Working with child jobs
- 15.8. Commands for managing jobs
- 15.9. Scheduled jobs
- 15.10. Common points of confusion
- 15.11. Lab
- 15.12. Lab answers
- Chapter 16. Working with many objects, one at a time
- Chapter 17. Security alert!
-
Chapter 18. Variables: a place to store your stuff
- 18.1. Introduction to variables
- 18.2. Storing values in variables
- 18.3. Using variables: fun tricks with quotes
- 18.4. Storing many objects in a variable
- 18.5. More tricks with double quotes
- 18.6. Declaring a variable’s type
- 18.7. Commands for working with variables
- 18.8. Variable best practices
- 18.9. Common points of confusion
- 18.10. Lab
- 18.11. Further exploration
- 18.12. Lab answers
- Chapter 19. Input and output
-
Chapter 20. Sessions: remote control with less work
- 20.1. Making PowerShell remoting a bit easier
- 20.2. Creating and using reusable sessions
- 20.3. Using sessions with Enter-PSSession
- 20.4. Using sessions with Invoke-Command
- 20.5. Implicit remoting: importing a session
- 20.6. Using disconnected sessions
- 20.7. Lab
- 20.8. Further exploration
- 20.9. Lab answers
- Chapter 21. You call this scripting?
- Chapter 22. Improving your parameterized script
- Chapter 23. Advanced remoting configuration
- Chapter 24. Using regular expressions to parse text files
-
Chapter 25. Additional random tips, tricks, and techniques
- 25.1. Profiles, prompts, and colors: customizing the shell
- 25.2. Operators: -as, -is, -replace, -join, -split, -in, -contains
- 25.3. String manipulation
- 25.4. Date manipulation
- 25.5. Dealing with WMI dates
- 25.6. Setting default parameter values
- 25.7. Playing with script blocks
- 25.8. More tips, tricks, and techniques
- Chapter 26. Using someone else’s script
- Chapter 27. Never the end
- Chapter 28. PowerShell cheat sheet
- Appendix. Review labs
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: Learn Windows PowerShell in a Month of Lunches, Third Edition
- Author(s):
- Release date: December 2016
- Publisher(s): Manning Publications
- ISBN: 9781617294167
You might also like
book
Learn PowerShell in a Month of Lunches, Fourth Edition
Designed for busy IT professionals, this innovative guide will take you from the basics to PowerShell …
video
Learn Windows PowerShell in a Month of Lunches, Third Edition, video edition
"Superb...full of real-world examples, this book is an IT specialist's best friend." Olivier Deveault, Voxco Group …
book
Learn PowerShell Scripting in a Month of Lunches
GET MORE WITH MANNING An eBook copy of the previous edition, Learn PowerShell Toolmaking in a …
book
Mastering Windows PowerShell Scripting - Third Edition
Grasp advanced PowerShell Core 6.0 functionalities to automate your environment Key Features Keep up with changes …