Example: Controlling the memberships of the local Administrators group

This tutorial explains how you can use a scope action to control the members of the local Administrators group on your machines.

The Goal

Have Goverlan review the members of the local Administrator's group on all machines and remove all members which are not 'Administrator', 'Domain Admins' or 'John Doe'.

You will notice that the Scope Action feature has a computer execute Action which allows you to remove one or more members for a specified local group (Execute Computer Action > Local Account Database > Remove Local Group Member).

This method allows you to insert wildcards in the Member UNC Name value. If you wanted to remove all members of the Administrators group except for any account which has the word Admin in it (like Administrator and Domain Admins), you could configure this parameters to be: !*admin*

However, this method falls short since we cannot specify that we do not want the John Doe account to be removed as well.

The Solution

Your Action Module should look like this:

Viewing Execution Result

Once the scope action has been executed, you should check which machines were processed successfully and which machines failed.

If one or more machines failed to be processed in this run because they were temporarily unavailable, you can select to re-run the scope action only for these failed computers at a later time. To do so, select the scope action, right-click on the mouse and select Re-Run on Failed Objects.

You can also schedule the scope action to re-run periodically using the execution mode: Failed Objects Only - Merge Output Data (see: Scheduling a Scope Action). This method of execution only processes the machines which failed during the previous run.