| document type | cmdlet |
|---|---|
| external help file | PSScriptModule-Help.xml |
| HelpUri | https://github.com/YourUsername/PSScriptModule |
| Locale | en-US |
| Module Name | PSScriptModule |
| ms.date | 03/23/2026 |
| PlatyPS schema version | 2024-05-01 |
| title | Get-ModuleMetadata |
Retrieves metadata information from PowerShell module manifest files
Get-ModuleMetadata [-Path] <string[]> [-IncludeSize] [<CommonParameters>]
This cmdlet has the following aliases, {{Insert list of aliases}}
Reads and extracts metadata from PowerShell module manifest (.psd1) files, including version, author, description, and exported functions. Supports pipeline input for processing multiple modules.
Get-ModuleMetadata -Path ./MyModule/MyModule.psd1
Retrieves metadata from the specified module manifest file.
Get-ChildItem -Path ./modules -Filter *.psd1 -Recurse | Get-ModuleMetadata
Processes multiple module manifests through the pipeline.
Get-ModuleMetadata -Path ./MyModule -IncludeSize
Retrieves metadata and includes formatted file size information.
Include the file size of the module in the output
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The path to the module manifest file (.psd1) or directory containing a manifest. Accepts wildcards for batch processing.
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases:
- FullName
- PSPath
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
System.IO.FileInfo
{{ Fill in the Description }}
{{ Fill in the Description }}
Returns objects with module metadata properties
{{ Fill in the Description }}
{{ Fill in the Description }}
Validates manifest files before processing to ensure data integrity. Uses fail-fast approach for invalid inputs.