Contact Info

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

New-ModuleManifest - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.


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