Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 4.0 » New-ModuleManifest

New-ModuleManifest - Powershell 4.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

New-ModuleManifest

Short description
Creates a new module manifest.

Syntax


Description
The New-ModuleManifest cmdlet creates a new module manifest (.psd1) file, populates its values, and saves the manifest 
file in the specified path.


Module authors can use this cmdlet to create a manifest for their module. A module manifest is a .psd1 file that 
contains a hash table. The keys and values in the hash table describe the contents and attributes of the module, 
define the prerequisites, and determine how the components are processed.  Manifests are not required for a module.


New-ModuleManifest creates a manifest that includes all of the commonly used manifest keys, so you can use the default 
output as a manifest template. To add or change values, or to add module keys that this cmdlet does not add, open the 
resulting file in a text editor.


Each parameter of this cmdlet (except for Path and PassThru) creates a module manifest key and its value. In a module 
manifest, only the ModuleVersion key is required. Unless specified in the parameter description, if you omit a 
parameter from the command, New-ModuleManifest creates a comment string for the associated value that has no effect.


In Windows PowerShell 2.0, New-ModuleManifest prompts you for the values of commonly used parameters that are not 
specified in the command, in addition to required parameter values. Beginning in Windows PowerShell 3.0, it prompts 
only when required parameter values are not specified.