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

format data for a distinguished name splitting

$
0
0

hello,

i want to format this request in a list but i think its not an object that i can select

can you help me to get this format

xxxx

xxxx

xxxx

xxxx

and not this format

xxxxx xxxx xxxx xxxx

my script is :

$groupDN = $groupEntry.distinguishedName
$Connexion = [ADSI]"LDAP://$groupDN"
$Members = $Connexion.member | % { ($_ -split ',')[0] -replace 'CN=' }


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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