I have a HUGE AD Environment with hundreds of OUs. I have a need to be able to input an OU, search AD for that OU and then count all Active Users.
The problem I am having is finding the OU. I see tons of examples for Users and Computers, which is easy if you build the query manually...
Thanks! Worked like a champ. Plugged it into my script and I'm now ready to run it against the list of users. You saved a laptop from meeting certain death after flying out my window :-)
I have been struggling over this all day and I'm about to throw my computer out the window. I am trying to create a script to modify the User Dial-In properties, which has to be done with LDAP. I can modify it to "True" (allow)or "False" (deny) without a problem... but of course the one I need...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.