O'Reilly logo

Windows PowerShell™ 3.0 Step by Step 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

General script construction

This section will look at some general considerations for the overall construction of scripts. This includes the use of functions, a related module, and other considerations.

Include functions in the script that uses the function

While it is possible to use an include file or dot-source a function within Windows PowerShell, it can become a support nightmare. If you know which function you want to use, but don’t know which script provides it, you have to go looking (unless the function resides in a module stored in a known location). If a script provides the function you want but has other elements that you don’t want, it’s hard to pick and choose from the script file. Additionally, you must be very careful when ...

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