Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

Check if AD Group has members

$
0
0

Hey guys,

I have a Problem with some AD Groups. I've build a script which runs through my AD and filters a lot of stuff out Groups - worked fine! Now we like to use the script in another AD, here are some empty Groups (no members) which let me run in some endless Loops.

Does anybody know a way to check if an AD Group got members or not?

Something like that:

If $ADGroup is not null{

rock on!

}else{

leave the script and take the next group

}

Thanks for help!


Viewing all articles
Browse latest Browse all 31638

Trending Articles



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