This PowerShell Style Guide was informed by multiple sources to ensure comprehensive coverage of PowerShell best practices and conventions. Where the author's own PowerShell code and experience did not provide sufficient evidence to inform a particular style guideline, this guide adopts recommendations from the sources listed below.
Source: PoshCode/PowerShellPracticeAndStyle
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Attribution: Don Jones, Matt Penny, Carlos Perez, Joel Bennett and the PowerShell Community.
Copyright Information:
- Portions copyright (c) Don Jones, Matt Penny, 2014-2015
- Portions copyright (c) Carlos Perez, 2015
- Portions copyright (c) Joel Bennett, 2015
This comprehensive community-driven guide provided valuable insights into PowerShell best practices and helped establish conventions in areas where practical experience alone was insufficient.
Source: Strongly Encouraged Development Guidelines
Microsoft's official PowerShell development guidelines provide authoritative recommendations for cmdlet development and PowerShell coding practices. These guidelines informed many of the technical and structural recommendations in this style guide.
These sources were consulted to:
- Fill gaps in style conventions not covered by the author's own PowerShell codebase
- Validate and align with community-accepted best practices
- Ensure consistency with Microsoft's official guidance
- Provide well-researched recommendations for edge cases and less common scenarios
This style guide is released under the MIT License. The acknowledgment of CC BY-SA 4.0 licensed material from the PowerShell Best Practices and Style Guide is made in accordance with the attribution requirements of that license. Users of this guide should be aware of the different licenses governing the various sources and respect the terms of each.
For more information about the licenses: