Powershell Tip #123: Extract the CN (Common Name) from DN (Distinguished Name) in Active Directory

By | October 23, 2016

Tip: You can extract the CN (Common Name) from DN (Distinguished Name) in Active Directory.

For example, someone sent you one report with DN only and you need to extract the CN.

extract-the-cn-from-dn-powershell


previous-buttonnext-button

2 thoughts on “Powershell Tip #123: Extract the CN (Common Name) from DN (Distinguished Name) in Active Directory

  1. Pingback: Powershell Tip #122: Get the start time and end time of the current day | Powershell Guru

  2. Pingback: Powershell Tip #124: Extract the OU (Organizational Unit) from DN (Distinguished Name) in Active Directory | Powershell Guru

Leave a Reply

Your email address will not be published. Required fields are marked *