Anyone know of a way to get a quick count of object in an OU in Active Directory?
Everything I have search for is pretty much:
I don't want to have to do that to get a count of something that can contain 1000+ objects. I was hoping there was a better way or a propert like .count for TestOU.
Everything I have search for is pretty much:
Code:
Set OU = TestOU
For Each Object in TestOU
count = count + 1
Next
I don't want to have to do that to get a count of something that can contain 1000+ objects. I was hoping there was a better way or a propert like .count for TestOU.