O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

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

8.3. Developing and Maintaining Script Libraries

Sooner or later, you will be tasked with creating a bigger and more complex solution that uses PowerShell as its implementation language. Before you know it, you can get in a situation where every piece of code is jammed in a single file and you can no longer find your way around in the code that you wrote yourself. This is an unpleasant situation to be in, and you have to be aware of your options for separating script code across several files to make things more manageable. In addition to being able to quickly navigate to the right spot in the right file, splitting code in several pieces makes it more reusable. It is quite common for a useful function to grow out of its first client code, get ...

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