Book description
Prepare for the future of Microsoft automation with this no-nonsense guide
Windows PowerShell 2 is the scripting language that enables automation within the Windows operating system. Packed with powerful new features, this latest version is complex, and Windows PowerShell 2 For Dummies is the perfect guide to help system administrators get up to speed.
Written by a Microsoft MVP with direct access to the program managers and developers, this book covers every new feature of Windows PowerShell 2 in a friendly, easy-to-follow format.
Windows PowerShell 2 is the updated scripting language that enables system administrators to automate Windows operating systems
System administrators with limited scripting experience will find this book helps them learn the fundamentals of Windows PowerShell 2 quickly and easily
Translates the jargon and complex syntax of Windows PowerShell 2
Covers script debugging improvements, the ability to invoke commands remotely, and the new user interface
Uses real-world applications to clarify the theory, fundamentals, and techniques of the scripting language
Written by a Microsoft MVP with direct access to the developers of Windows PowerShell 2
Windows PowerShell 2 For Dummies makes this tool easily accessible to administrators of every experience level.
Table of contents
- Copyright
- About the Author
- Author's Acknowledgments
- Publisher's Acknowledgments
-
Introduction
- About This Book
- Conventions Used in This Book
- What You're Not to Read
- Foolish Assumptions
-
How This Book Is Organized
- Part I: Getting a Bird's-Eye View of PowerShell 2
- Part II: PowerShell's Basic Structure and Syntax
- Part III: Complex Data Description and Sharing
- Part IV: Controlling Where and How You Operate PowerShell
- Part V: Real-World Windows Administration Using PowerShell
- Part VI: Configuring and Reporting Via PowerShell
- Part VII: The Part of Tens
- Icons Used in This Book
- What's on the Web Site
- Where to Go from Here
-
I. Getting a Bird's-Eye View of PowerShell 2
- 1. The Windows PowerShell Rap Sheet
- 2. Customizing and Shortcutting the Environment
- 3. A Pinch of Shell, a Pound of Power
- II. PowerShell's Basic Structure and Syntax
-
III. Complex Data Description and Sharing
-
8. Working with Windows Management Instrumentation
- 8.1. Getting Familiar with Windows Management Instrumentation
- 8.2. Making Windows PowerShell Interact with WMI
- 8.3. Using SQL Syntax in WMI to Get WQL
- 8.4. Harnessing the Power of WMI
- 8.5. Changing WMI Authentication Levels
- 8.6. Pretending to Be Someone Else Using Impersonation
- 8.7. Using the New WMI Cmdlets
-
9. Bringing Strings into the Limelight
- 9.1. Taking Your First Look at Strings
- 9.2. Performing String Surgery
- 9.3. Working with String Positions
- 9.4. Changing the Case of Strings
-
9.5. Using Regular Expressions
- 9.5.1. Creating the simplest RegEx using literal characters
- 9.5.2. Performing more dynamic searches using character sets
- 9.5.3. Using modifiers to define optional or repeating sequences
- 9.5.4. Using anchors to maintain position
- 9.5.5. Coming up with alternatives
- 9.5.6. Making use of RegEx in Windows PowerShell
- 10. I'll Take Numbers for $100, Please
- 11. Grouping Data Using Arrays and Hash Tables
- 12. Readin' and Writin' Files
- 13. Going On a Date with PowerShell
-
8. Working with Windows Management Instrumentation
-
IV. Controlling Where and How You Operate PowerShell
- 14. Using Functions to Divide and Conquer
-
15. PowerShell Ninjas: Running Jobs Remotely or in the Background
- 15.1. Using Background Jobs
-
15.2. Running Commands Remotely
- 15.2.1. Using Windows PowerShell everywhere
- 15.2.2. Getting what you need for remote commands
- 15.2.3. Speaking PowerShell with a different computer
- 15.2.4. Invoking commands remotely
- 15.2.5. Creating a persistent connection
- 15.2.6. Running remote background jobs
- 15.2.7. Understanding policies, profiles, and precedence
- 16. Making Your Script Speak Different Languages
- 17. Smashing Those Bugs
-
V. Real-World Windows Administration Using PowerShell
- 18. Mission Control: All Systems Go
- 19. Taming the Windows Registry
- 20. Reaching Out to Active Directory
- 21. PowerShell Lockdown
- 22. Converting Your Old Scripts: Out with the Old, In with the New
-
VI. Configuring and Reporting Via PowerShell
- 23. Controlling Your Network Configuration
- 24. Managing Your Hardware
- 25. Making Reporting Easy
-
VII. The Part of Tens
-
26. The Ten Most Important Cmdlets
- 26.1. Getting Help with Get-Help
- 26.2. Getting to Know Your Objects with Get-Member
- 26.3. Navigating with Set-Location
- 26.4. Reading Text Files with Get-Content
- 26.5. Writing to a File with Out-File
- 26.6. Leveraging WMI with Get-WMIObject
- 26.7. Creating New Objects with New-Object
- 26.8. Getting Picky with Select-Object
- 26.9. Going Through Collections with Foreach-Object
- 26.10. Controlling the Pipeline with Where-Object
-
27. Ten Common PowerShell Mistakes
- 27.1. Forgetting to Change the Execution Policy
- 27.2. Using Commas to Separate Parameters When Calling a Function
- 27.3. Defining Functions After You Use Them
- 27.4. Treating Pipeline Data as Strings
- 27.5. Forgetting to Cast Variables as a String
- 27.6. Using Incorrect Comparison Operators
- 27.7. Trying to Do Too Much in One Pipeline
- 27.8. Forgetting About Variable Scope
- 27.9. Not Using the Debugger
- 27.10. Not Using .NET Classes When Available
-
26. The Ten Most Important Cmdlets
- BC1. Handling Exceptions
Product information
- Title: Windows PowerShell™ 2 For Dummies®
- Author(s):
- Release date: August 2009
- Publisher(s): For Dummies
- ISBN: 9780470371985
You might also like
book
Microsoft® Windows PowerShell™ Step By Step
Learn Microsoft Windows PowerShell —one step at a time—with practical, hands-on instruction from Microsoft’s leading scripting …
book
Windows 7 Portable Command Guide: MCTS 70-680, and MCITP 70-685 and 70-686
With hundreds of Windows 7 OS commands, options, and command arguments to remember, a MCTS 70-680, …
book
Windows PowerShell® 2.0 Bible
Here's the complete guide to Windows PowerShell 2.0 for administrators and developers Windows PowerShell is Microsoft's …
book
Windows® PowerShell™ Unleashed
PowerShell gives Windows administrators immense power to automate and customize virtually any administrative task–saving time, increasing …