Appendix C. Best practices

Best practice is a topic that can, and will, cause arguments, especially among the many passionate members of the PowerShell community. Many people, including myself, have a view of what constitutes best practice. In this appendix, I’ll present some suggestions that distill both my observation of and my experience with PowerShell. These suggestions are based on using PowerShell for over six years, writing and speaking about it, talking to many PowerShell users, and observing the scripts that are available.

 

Warning

Some the functions in the book do not follow all of these suggestions. This is to reduce the length of the examples (for readability) and to concentrate on the working parts of the functions.

 

The contents ...

Get PowerShell and WMI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.