O'Reilly logo

PowerShell for Office 365 by Prashant G Bhoyar, Martin Machado

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

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: ...

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