< Back
Enable-Metadata
Post
NAME Enable-Metadata
SYNOPSIS
Enable a metadata property which has been commented out.
SYNTAX
Enable-Metadata [[-Path] <String>] [-PropertyName <String>] [<CommonParameters>]
DESCRIPTION
This function is derived Get and Update-Metadata from PoshCode\\Configuration.
A boolean value is returned indicating if the property is available in the metadata file.
If the property does not exist, or exists more than once within the specified file this command will return false.
PARAMETERS
-Path <String>
A valid metadata file or string containing the metadata.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-PropertyName <String>
The property to enable.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
System.Boolean
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Enable-Metadata .\\module.psd1 -PropertyName RequiredAssemblies
Enable an existing (commented) RequiredAssemblies property within the module.psd1 file.
RELATED LINKS
SYNOPSIS
Enable a metadata property which has been commented out.
SYNTAX
Enable-Metadata [[-Path] <String>] [-PropertyName <String>] [<CommonParameters>]
DESCRIPTION
This function is derived Get and Update-Metadata from PoshCode\\Configuration.
A boolean value is returned indicating if the property is available in the metadata file.
If the property does not exist, or exists more than once within the specified file this command will return false.
PARAMETERS
-Path <String>
A valid metadata file or string containing the metadata.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-PropertyName <String>
The property to enable.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
System.Boolean
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Enable-Metadata .\\module.psd1 -PropertyName RequiredAssemblies
Enable an existing (commented) RequiredAssemblies property within the module.psd1 file.
RELATED LINKS