February 2019
Intermediate to advanced
626 pages
15h 51m
English
The module manifest is a PowerShell data file that contains metadata for the module. The manifest includes critical information, such as the version number, the files to import, and the commands, aliases, and classes that it contains. The manifest may include the software license and a project URL if they are applicable.
The use of a manifest is mandatory if a module will be published on the PowerShell Gallery or any other repository.
The New-ModuleManifest command may be used to create the manifest from scratch. The following example assumes the module is a C:\workspace path:
$params = @{ Path = 'C:\workspace\LocalMachine\LocalMachine.psd1' RootModule = 'LocalMachine.psm1' ModuleVersion = '1.0.0' FunctionsToExport = 'Get-ComputerDescription', ...Read now
Unlock full access