Book description
Master the art of automating and managing your Windows environment using PowerShell
In Detail
PowerShell is quickly becoming the de facto standard for scripting in Microsoft Windows environments. It enables the automation of otherwise complex tasks, providing interactivity between different products.
Beginning with PowerShell fundamentals, this book progresses by imparting the advanced skills required to master automation. You will learn how to deal with data and operations on various data types and structures, and see the techniques of data manipulation and parsing. Moving on, you will learn about the usage of regular expressions and comparison operators. Error handling techniques will enable you to identify and eliminate errors. This book also provides best practices for scripting and techniques to reduce the amount of code required to complete tasks.
By the end of this book, you will be able to create a variety of PowerShell scripts and successfully automate your environment and become the go-to person.
What You Will Learn
- Utilize variables, hashes, and arrays to store data
- Parse and manipulate different data types
- Optimize code through the use of functions, switches, and looping structures
- Create and implement regular expressions in PowerShell scripts
- Leverage session-based remote management
- Manage files, folders, and registries through the use of PowerShell
- Discover the best practices to manage Microsoft systems
Table of contents
-
Mastering Windows PowerShell Scripting
- Table of Contents
- Mastering Windows PowerShell Scripting
- Credits
- Foreword
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Variables, Arrays, and Hashes
- 2. Data Parsing and Manipulation
- 3. Comparison Operators
- 4. Functions, Switches, and Loops Structures
- 5. Regular Expressions
- 6. Error and Exception Handling and Testing Code
- 7. Session-based Remote Management
-
8. Managing Files, Folders, and Registry Items
- Registry provider
- Creating files, folders, and registry items with PowerShell
- Adding named values to registry keys
- Verifying files, folders, and registry items
- Copying and moving files and folders
- Renaming files, folders, registry keys, and named values
- Deleting files, folders, registry keys, and named values
- Summary
- 9. File, Folder, and Registry Attributes, ACLs, and Properties
- 10. Windows Management Instrumentation
- 11. XML Manipulation
- 12. Managing Microsoft Systems with PowerShell
- 13. Automation of the Environment
- 14. Script Creation Best Practices and Conclusion
- Index
Product information
- Title: Mastering Windows PowerShell Scripting
- Author(s):
- Release date: April 2015
- Publisher(s): Packt Publishing
- ISBN: 9781782173557
You might also like
video
Advanced Windows PowerShell Scripting
In this Advanced Windows PowerShell Scripting training course, expert author Jason Yoder will take you beyond …
book
Mastering Windows PowerShell Scripting - Second Edition
Master the art of automating and managing your environment using PowerShell About This Book Find quick …
video
Practical Windows PowerShell Scripting
10 Hours of Video Instruction Learn from an expert while you become the expert. begins with …
book
Mastering Windows PowerShell Scripting - Third Edition
Grasp advanced PowerShell Core 6.0 functionalities to automate your environment Key Features Keep up with changes …