O'Reilly logo

Windows PowerShell Step by Step, Third Edition by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Windows PowerShell scripting best practices

One of the great things about Windows PowerShell 5.0 is that it is extremely flexible. This flexibility, however, comes at the cost of readability, complexity, and supportability. The best practices described in this appendix will help you minimize the effects of any of the potential pitfalls. Windows PowerShell is both a command-line environment and a scripting environment, and best practices for scripts are not always the best practices for interactive Windows PowerShell commands. The following best practices apply to the scripting environment.

General script construction

This section looks at some general considerations for the overall construction of scripts. This includes the use of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required