Skip to content

Remove ModuleManifestComments

Nick Spreitzer edited this page Nov 17, 2019 · 7 revisions
external help file: RemoveModuleManifestComments-help.xml
Module Name: WhatsNew
schema: 2.0.0

Remove-ModuleManifestComments

SYNOPSIS

Removes comments from module manifest files.

SYNTAX

Remove-ModuleManifestComments 
  [-ManifestPath] <String> 
  [-NoConfirm] 
  [-Confirm] 
  [<CommonParameters>]

DESCRIPTION

Removes all comments from PowerShell module manifests. The end result is a file that's less cluttered and easier to read.

EXAMPLES

Example 1

PS C:\> Remove-ModuleManifestComments ".\MyManifest.psd1" -NoConfirm

Loads .\MyManifest.psd1, removes all comments, and overwrites the existing file without confirming.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ManifestPath

The path to the module manifest file.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-NoConfirm

Do not confirm before overwriting the manifest file.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

NOTES

RELATED LINKS

Remove-ModuleManifestComments

Clone this wiki locally