Register-DMNameMapping
SYNOPSIS
Register a new name mapping.
SYNTAX
__AllParameterSets
Register-DMNameMapping [-Name] <string> [-Value] <string> [<CommonParameters>]
DESCRIPTION
Register a new name mapping. Mapped names are used for stringr replacement when invoking domain configurations.
EXAMPLES
EXAMPLE 1
Register-DMNameMapping -Name '%ManagementGroup%' -Value 'Mgmt-Team-1234'
Registers the string 'Mgmt-Team-1234' under the label '%ManagementGroup%'
PARAMETERS
-Name
The name of the placeholder to register. This label will be replaced with the content specified in -Value. Be aware that all labels must be enclosed in % and only contain letters, underscore and numbers.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Value
The value to insert in place of the label.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
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.