Book description
Your hands-on guide to Windows PowerShell scripting
fundamentals
Expand your expertise--and teach yourself the fundamentals of
Windows PowerShell scripting, including features available in
Windows PowerShell 5. If you are an IT professional, power user, or
consultant, you’ll get the guidance, exercises, and code you
need to master core techniques for automating Windows setup,
deployment, and management.
Discover how to:
Run cmdlets and command-line utilities
Administer Windows-based servers and desktops with built-in cmdlets
Use providers to access external information
Write and run scripts from the Windows ISE
Create functions that are easy to maintain
Build standardized environments with profiles
Automate Windows systems with WMI, CIM cmdlets, and remoting
Automate Active Directory Domain Services (AD DS)
Debug scripts and handle errors
Run commands that survive interruptions
Use Desired State Configuration (DSC) to manage software services and their environments
Get powerful new modules from PowerShell Gallery
About You
This book is for:
IT professionals and power users who want to get productive with Windows PowerShell, including new features in Windows PowerShell 5
Windows system administrators who want to be more efficient and productive
Anyone pursuing Windows PowerShell certifications
No experience with Windows PowerShell or other scripting
technologies necessary
Table of contents
- Cover
- Title Page
- Copyright Page
- Dedication Page
- Contents at a glance
- Contents
- Introduction
- Chapter 1. Overview of Windows PowerShell 5.0
-
Chapter 2. Using Windows PowerShell cmdlets
- Understanding the basics of cmdlets
- Using the Get-ChildItem cmdlet
- Formatting output with Out-GridView
- Taking advantage of the power of Get-Command
- Using the Get-Member cmdlet
- Using the New-Object cmdlet
- Using the Show-Command cmdlet
- Windows PowerShell cmdlet naming helps you learn
- Creating a Windows PowerShell profile
- Working with cmdlets: Step-by-step exercises
- Chapter 2 quick reference
- Chapter 3. Understanding and using Windows PowerShell providers
- Chapter 4. Using Windows PowerShell remoting and jobs
- Chapter 5. Using Windows PowerShell scripts
-
Chapter 6. Working with functions
- Understanding functions
- Using functions to provide ease of code reuse
- Including functions in the Windows PowerShell environment
- Adding help for functions
- Using two input parameters
- Using a type constraint in a function
- Using more than two input parameters
- Using functions to encapsulate business logic
- Using functions to provide ease of modification
- Understanding filters
- Creating a function: Step-by-step exercises
- Chapter 6 quick reference
- Chapter 7. Creating advanced functions and modules
- Chapter 8. Using the Windows PowerShell ISE
- Chapter 9. Working with Windows PowerShell profiles
- Chapter 10. Using WMI
- Chapter 11. Querying WMI
- Chapter 12. Remoting WMI
- Chapter 13. Calling WMI methods on WMI classes
- Chapter 14. Using the CIM cmdlets
- Chapter 15. Working with Active Directory
- Chapter 16. Working with the AD DS module
- Chapter 17. Deploying Active Directory by using Windows PowerShell
- Chapter 18. Debugging scripts
-
Chapter 19. Handling errors
- Handling missing parameters
- Limiting choices
- Handling missing rights
- Handling missing WMI providers
- Handling incorrect data types
- Handling out-of-bounds errors
- Using Try...Catch...Finally
- Using PromptForChoice to limit selections and using Try...Catch...Finally: Step-by-step exercises
- Chapter 19 quick reference
- Chapter 20. Using the Windows PowerShell workflow
- Chapter 21. Managing Windows PowerShell DSC
- Chapter 22. Using the PowerShell Gallery
- Appendix A. Windows PowerShell scripting best practices
- Appendix B. Regular expressions quick reference
- Index
- About the author
- Survey
- Code Snippets
Product information
- Title: Windows PowerShell Step by Step, Third Edition
- Author(s):
- Release date: October 2015
- Publisher(s): Microsoft Press
- ISBN: 9781509300433
You might also like
book
Windows PowerShell Cookbook, 3rd Edition
How do you use Windows PowerShell to navigate the filesystem, manage files and folders, or retrieve …
book
Windows PowerShell in Action, Third Edition
Windows PowerShell in Action, Third Edition is an end-to-end revision of the definitive guide to PowerShell. …
video
Advanced Windows PowerShell Scripting
In this Advanced Windows PowerShell Scripting training course, expert author Jason Yoder will take you beyond …
book
Windows Server Automation with PowerShell Cookbook - Fifth Edition
Use over 100 PowerShell 7.2 recipes to deepen your understanding of Windows Server 2022 and see …