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

List of Users in local administrators group

$
0
0

Hello All!

Is there a script out there that can query all computer names from active directory and then query those machines for %username% in the local administrators group?

I would like to have a csv that would have a list of all usernames and whether or not they are in the local administrators group on the machine.

I could export a list of computers to query from SCCM, but it would be nice to be able to just have the query pull the computer and user data from somewhere...AD, or even SCCM DB

Thank you for your help.

Anthony Good

SCCM Administrator


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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