Module manifest

A PowerShell module consists of at least a manifest file (the extension .psd1). It is common to at least have a main module file (the extension .psm1). A manifest file can reference additional modules, scripts, and supporting files as required.

The manifest file contains metadata of the script, including the name, dependencies, and version. The New-ModuleManifest command will generate the manifest file:

New-ModuleManifest -Path SalesDashboardModule.psd1 -Author Martin -CompanyName Packt -Copyright 2017

You can pass all of the parameters to the command, but it is usually easier to modify the manifest file directly after it's generated since it is a text file and will require constant updates during the development stage: ...

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