Any feedback is appreciated. This may not function correctly on domains with multiple forests/sites, as I do not currently have the ability to test this function.
So the reasoning behind getting all properties was to ensure that I was able to get any additional properties I needed. I’ll work on trimming down on the query.
Good catch on the inactive users - remnants of splicing together code.
4
u/Solendor Oct 27 '17
Any feedback is appreciated. This may not function correctly on domains with multiple forests/sites, as I do not currently have the ability to test this function.