List of Users in local administrators group RRS feed

  • Question

  • 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

    Tuesday, April 29, 2014 4:36 PM


  • What's the purpose of the script? If your goal is to enforce local Administrators group membership, then use restricted groups feature of group policy.

    -- Bill Stewart [Bill_Stewart]

    Tuesday, April 29, 2014 5:15 PM

All replies