Chapter 10. Designing modules
Windows PowerShell modules provide a convenient way to package reusable code. By using modules, it is possible to share them between computers, users, and scripts. The use of these modules solves many of the problems that might confront a new scripter. In this chapter, we begin by understanding what a module is and why you would want to use one, we move to some of the decisions necessitated by modules, and conclude with an example of creating a new module.
Understanding modules
Windows PowerShell 2.0 introduced the concept of modules. A module is a package that can contain Windows PowerShell cmdlets, aliases, functions, variables, ...
Get Windows PowerShell Best Practices 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.