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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.