Skip to content

Latest commit

 

History

History
89 lines (59 loc) · 1.87 KB

Split-DistinguishedName.md

File metadata and controls

89 lines (59 loc) · 1.87 KB
external help file Module Name online version schema
ADReportingTools-help.xml
ADReportingTools
2.0.0

Split-DistinguishedName

SYNOPSIS

Split a distinguished name into its components.

SYNTAX

Split-DistinguishedName [-DistinguishedName] <String> [<CommonParameters>]

DESCRIPTION

Split-DistinguishedName will take a disdinguishedname and break it down to its component elements. The command does not verify the name or any of its elements.

EXAMPLES

Example 1

PS C:\>Get-ADGroup supporttech | Split-Distinguishedname


Name      : SupportTech
Branch    : Help Desk
BranchDN  : OU=Help Desk,OU=IT,DC=Company,DC=Pri
Domain    : Company
DomainDN  : DC=Company,DC=Pri
DomainDNS : Company.Pri

Example 2

PS C:\> Split-DistinguishedName "CN=Foo,OU=Bar,OU=Oz,DC=Research,DC=Globomantics,DC=com"


Name      : Foo
Branch    : Bar
BranchDN  : OU=Bar,OU=Oz,DC=Research,DC=Globomantics,DC=com
Domain    : Research
DomainDN  : DC=Research,DC=Globomantics,DC=com
DomainDNS : Research.Globomantics.com

PARAMETERS

-DistinguishedName

Enter an Active Directory DistinguishedName.

Type: String
Parameter Sets: (All)
Aliases: dn

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
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

ADDistinguishedNameInfo

NOTES

Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/

RELATED LINKS