How do I audit local group membership on every server?

green

By default, this script will find all servers in Active Directory and audit the local Administrators and Remote Desktop Users groups for their membership.  It will display to the screen and create a CSV file of the results.

You can alter which local groups to audit (top of the script) and the output location of the CSV file to save to (bottom of the script).

The resulting CSV file is in the format of <server name>, <local group name>, <group member name>, <member type (user or group)>:

localgroups

green

3 Comments How do I audit local group membership on every server?

  1. John folia

    Can you update script so that output format will be grouped by server with heading – Server name, Local Group Name, Members, Type?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *