Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » New-ModuleManifest

New-ModuleManifest - Powershell 2.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 »


Short description
Creates a new module manifest.

New-ModuleManifest [-Path] <string> -Author <string> -CompanyName <string> -Copyright <string> -Description <string

The New-ModuleManifest cmdlet creates a new module manifest (.psd1) file, populates its values, and saves the manif
est 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 co
ntains a hash table. The keys and values in the hash table describe the contents and attributes of the module, defi
ne 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 defa
ult output as a manifest template. To add or change values, or to add module keys that this cmdlet does not add, op
en 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 modu
le manifest, only the ModuleVersion key is required. However, several other parameters of this cmdlet are mandatory
. As a result, you can type a "New-ModuleManifest" command without parameters and the cmdlet will prompt you for va
lues for other commonly used keys. To leave the value empty, press ENTER.

For a complete description of the format, effects, and requirements of a module manifest, see "How to Write a Modul
e Manifest" in the MSDN (Microsoft Developer Network) library at