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

Query AD Security membership and spilt results

$
0
0

Hi,

I have a VBS script that list to a text file all AD security groups that user is member of. Problem is that query returns full distinguished name like "CN=Citrix MS Access 97,OU=CTX_application_groups,OU=Fi,OU=Groups,OU=company,DC=domain,DC=domain,DC=com"

For the sake of simplicity I would like to spilt this and write only the name of the group to the user who will eventually use this data

Where it gets complicated (to me) is that some of our group names also contain , (comma). So if I just use "MyArray = Split(Group, ",", -1, 1)" it splits also the group name.

Any way around this?

Thanks!


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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