This chapter explores the best practices for script creation. It begins by discussing the ways to create comment headers in your scripts. It then dives into how to comment on code in your scripts and different situations where you may need detailed comments. You will then explore the best practices for script creation and provide other considerations that developers need to have in order to develop their scripts. This chapter then explains source control and maintaining revisions, and concludes with the best practices for automation with PowerShell.
Mastering Windows PowerShell Scripting
By :
Mastering Windows PowerShell Scripting
By:
Overview of this book
Table of Contents (22 chapters)
Mastering Windows PowerShell Scripting
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Variables, Arrays, and Hashes
Data Parsing and Manipulation
Comparison Operators
Functions, Switches, and Loops Structures
Regular Expressions
Error and Exception Handling and Testing Code
Session-based Remote Management
Managing Files, Folders, and Registry Items
File, Folder, and Registry Attributes, ACLs, and Properties
Windows Management Instrumentation
XML Manipulation
Managing Microsoft Systems with PowerShell
Automation of the Environment
Script Creation Best Practices and Conclusion
Index
Customer Reviews