Contact Info

Crumbtrail

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

New-ModuleManifest - Powershell 3.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
New-ModuleManifest [-Path] <String> [-AliasesToExport <String[]>] [-Author <String>] [-ClrVersion <Version>] [-CmdletsT
oExport <String[]>] [-CompanyName <String>] [-Copyright <String>] [-DefaultCommandPrefix <String>] [-Description <Strin
g>] [-DotNetFrameworkVersion <Version>] [-FileList <String[]>] [-FormatsToProcess <String[]>] [-FunctionsToExport <Stri
ng[]>] [-Guid <Guid>] [-HelpInfoUri <String>] [-ModuleList <Object[]>] [-ModuleVersion <Version>] [-NestedModules <Obje
ct[]>] [-PassThru] [-PowerShellHostName <String>] [-PowerShellHostVersion <Version>] [-PowerShellVersion <Version>] [-P
rivateData <Object>] [-ProcessorArchitecture <ProcessorArchitecture>] [-RequiredAssemblies <String[]>] [-RequiredModule
s <Object[]>] [-RootModule <String>] [-ScriptsToProcess <String[]>] [-TypesToProcess <String[]>] [-VariablesToExport <S
tring[]>] [-Confirm] [-WhatIf] [<CommonParameters>]





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 contai
ns a hash table. The keys and values in the hash table describe the contents and attributes of the module, define the p
rerequisites, 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 r
esulting 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 m
anifest, 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 speci
fied in the command, in addition to required parameter values. Beginning in Windows PowerShell 3.0, it prompts only whe
n required parameter values are not specified.