external help file | Module Name | online version | schema |
---|---|---|---|
ADReportingTools-help.xml |
ADReportingTools |
2.0.0 |
Split a distinguished name into its components.
Split-DistinguishedName [-DistinguishedName] <String> [<CommonParameters>]
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.
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
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
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/