Synopses & Reviews
This is today's definitive hands-on guide to automating Windows setup, deployment, and management with Windows PowerShell. Microsoft senior consultant Ed Wilson ("The Scripting Guy") fully illuminates every key PowerShell technique -- especially the major improvements and new cmdlets introduced with PowerShell 5.0.
Wilson's positive and humorous approach has made him one of the world's most popular PowerShell instructors. His practical examples and insights will help you maximize productivity and quality in all your IT operations, and integrate automated workflows throughout any traditional or cloud environment.
Windows PowerShell Step by Step, Third Edition offers more labs and structured learning exercises than any other PowerShell 5.0 tutorial. Wilson guides you step-by-step through building every script he demonstrates. He reinforces key concepts with step-by-step exercises, including "One Step Further" exercises that deepen your understanding, so you can solve your unique problems. All examples and starter files are downloadable at the TechNet Script Center Script Repository. Coverage includes:
- Basic PowerShell concepts and cmdlets
- Key providers: Alias, Certificate, Environment, File System, Function, Registry, Variable, and WSMAN
- Remoting, jobs, scripts, functions, and modules
- Windows PowerShell ISE and snippets
- Creating, organizing, and running PowerShell profiles
- WMI: objects, namespaces, providers, classes, and queries
- Remoting WMI and calling WMI methods via CIM
- Automating Active Directory and AD Domain Services
- Debugging scripts and handling errors
- Defining complex workflows
- Using Desired State Configuration (DSC) to quickly enforce or restore configuration settings
- Finding and using the PowerShell Gallery's powerful new resources
Each chapter concludes with a convenient quick reference, and Wilson presents detailed appendices on coding conventions and regular expressions. If you're upgrading from any earlier version of PowerShell, a new "Start Here" section identifies the most valuable PowerShell features you haven't already learned, so you can focus your efforts where they'll make you most productive.
Synopsis
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
1. Overview of Windows PowerShell 5.0
2. Using Windows PowerShell Cmdlets
3. Leveraging PowerShell Providers
4. Using PowerShell Remoting and Jobs
5. Using PowerShell Scripts
6. Working With Functions
7. Creating Advanced Functions and Modules
8. Using the Windows PowerShell ISE
9. Working With PowerShell Profiles
10. Using WMI
11. Querying WMI
12. Remoting WMI by Using CIM
13. Calling WMI Methods via CIM
14. Using the CIM Cmdlets
15. Working With Active Directory
16. Using the Active Directory Module
17. Deploying Active Directory Domain Services
18. Debugging Scripts
19. Handling Errors
20. Using Workflow
21. Using Desired State Configuration
22. Using PowerShell Gallery
Appendix A. Windows PowerShell 5.0 coding conventions
Appendix B. Regular Expressions quick reference