In the preceding chapter, you learned about functions. Functions break a script into manageable units, giving you more efficient, more readable code. But there’s no reason a good function should exist in only a script or single session. In this chapter, you’ll learn about modules, groups of similar functions that are packaged together and distributed for others to use across many scripts.

In its purest form, a PowerShell module is just a text file with a .psm1 file extension and some optional, extra metadata. Other types of modules that don’t fit this description are known as binary modules and dynamic modules, but they are ...

Get PowerShell for Sysadmins 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.