Book description
Apply best practices for automating system administration with Windows PowerShell 2.0 and optimize your operational efficiency and results. This guide captures the field-tested tips, real-world lessons, and candid advice of practitioners across the range of business and technical scenarios and across the scripting life cycle. Discover how to:
Take advantage of new features and cmdlets in Windows PowerShell 2.0
Plan scripting usage scenarios and define standards Deploy Windows PowerShell 2.0 to desktops and servers
Configure scripting environments
Optimize remote scripting capabilities
Work with Active Directory and WMI
Design functions and modules
Optimize input and output
Handle errors
Document scripts
Test and troubleshoot scripts
Avoid scripting pitfalls
The companion CD includes a fully searchable eBook and sample scripts.
For customers who purchase an ebook version of this title, instructions for downloading the CD files can be found in the ebook.
Table of contents
- Dedication
- Acknowledgments
- Introduction
- About the Companion Media
-
I. Introduction
- 1. Assessing the Scripting Environment
- 2. Survey of Windows PowerShell Capabilities
- 3. Survey of Active Directory Capabilities
- 4. User Management
-
II. Planning
- 5. Identifying Scripting Opportunities
- 6. Configuring the Script Environment
- 7. Avoiding Scripting Pitfalls
- 8. Tracking Scripting Opportunities
-
III. Designing
- 9. Designing Functions
-
10. Designing Help for Scripts
- Adding Help Documentation to a Script with Single-Line Comments
- Using the Here-String for Multiple-Line Comments
- Using Multiple-Line Comment Tags in Windows PowerShell 2.0
-
The 13 Rules for Writing Effective Comments
- Update Documentation When a Script Is Updated
- Add Comments During the Development Process
- Write for an International Audience
- Consistent Header Information
- Document Prerequisites
- Document Deficiencies
- Avoid Useless Information
- Document the Reason for the Code
- Use of One-Line Comments
- Avoid End-of-Line Comments
- Document Nested Structures
- Use a Standard Set of Keywords
- Document the Strange and Bizarre
- Additional Resources
- 11. Planning for Modules
- 12. Handling Input and Output
- 13. Handling Errors
-
IV. Testing and Deploying
- 14. Testing Scripts
- 15. Running Scripts
- V. Optimizing
- A. Windows PowerShell 2.0 cmdlets
- B. Common Windows PowerShell Verbs
- C. Useful COM Objects
- D. Useful WMI Classes
- E. Useful Microsoft .NET Framework Classes
- F. WMI Error Messages
- Index
- About the Author
- Copyright
Product information
- Title: Windows PowerShell™ 2.0 Best Practices
- Author(s):
- Release date: December 2009
- Publisher(s): Microsoft Press
- ISBN: 9780735642218
You might also like
book
Python Crash Course, 3rd Edition
Python Crash Course is the world's best-selling guide to the Python guide programming language, with over …
book
Mastering Active Directory - Third Edition
Become an expert at managing enterprise identity infrastructure with Active Directory Domain Services 2022. Purchase of …
book
Mastering Windows Group Policy
Improve and reimagine your organization's security stance, desktop standards, and server administration with centralized management via …
video
The Complete Python Programming Course: Beginner to Advanced
This is the course for people who want to get started programming with Python, and are …