Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell splitting

$
0
0

Hi,

I have one output for distinguished name as :

CN=OSDWIN7SOE,OU=Laptops,OU=ABC Data Centre,OU=ABC - Mumbai,OU=ABC - India,DC=INDIAUAT,DC=ABCUAT,DC=COM

I need a powershell code to only retrieve the CN name that is my output should have only : OSDWIN7SOE.

Help me with this. 

Thanks in advance


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>