| document type | cmdlet |
|---|---|
| external help file | helium-Help.xml |
| HelpUri | https://github.com/Skatterbrainz/helium/blob/master/docs/Get-ReverseDistinguishedName.md |
| Locale | en-US |
| Module Name | helium |
| ms.date | 02/11/2026 |
| PlatyPS schema version | 2024-05-01 |
| title | Get-ReverseDistinguishedName |
Reverse an LDAP DistinguishedName into ADSI form
Get-ReverseDistinguishedName [-DistinguishedName] <string> [-PathOnly] [<CommonParameters>]
This cmdlet has the following aliases, {{Insert list of aliases}}
Reverse an LDAP DistinguishedName value into ADSI form so that it reads left-to-right Domain,Path,Name without the prefix keys (e.g. "OU=")
Get-ReverseDistinguishedName "CN=TaylorS,OU=Users,OU=Sales,OU=CORP,DC=East,DC=Contoso,DC=local" Returns: "East.Contoso.local\CORP\Sales\UsersTaylorS"
Get-ReverseDistinguishedName -PathOnly "CN=TaylorS,OU=Users,OU=Sales,OU=CORP,DC=East,DC=Contoso,DC=local" Returns: "East.Contoso.local\CORP\Sales"
LDAP DistinguishedName value
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Optional. Returns domain root and path without the object name (CN= value)
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: ''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.