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

How can i reduce the Output of "Get-QADUser Username | Format-List LogonName, MemberOf" => MemberOf should be only the Name an not CN

$
0
0

Get-QADUser Username | Format-List LogonName, MemberOf gives me:

LogonName      : UserName
MemberOf       : {CN=G-Usr-XXX-XXXXX-XXXXXXXX-Write,OU=XXXXXX,OU=XXXXX,OU=XXX,DC=XXXXXX,DC=XX, .......  ...}

What i am looking for is:

LogonName      : UserName
MemberOf       : {G-Usr-XXX-XXXXX-XXXXXXXX-Write, Next Group Name  ...}

Another thing ist, that if there are many goups they are not listed all! just a ...} at the end. How can this be solved?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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