In order to add domain accounts to a machines local administrators group we would previously have used code something like this:
net localgroup administrators LocalAdministratorGroupName /add
This guide will show you how to you how to add domain users to local machine groups using the updated Group Policy Preference Client Side Extensions & RSAT.
Prerequisites
- RSAT
- Client and server machines must have the Client Side Extensions installed.
1. Create and name a new Policy.
2. Browse to Computer Configuration > Preferences > Local Users and Groups.
3. Right click in a blank area of the right-hand pane and select New > Local Group.
4. From the action dropdown select ‘update’ and from the group name dropdown select ‘Administrators (built-in)’
5. Click the add button.
6. Under name, type your s-id (campus\s-id) and under action make sure that ‘Add to this group’ is selected.
7. Close and save the group policy.
There are many more options available in the Local Users and Groups section alone which may be useful. Next time I’ll look at deploying printers via RSAT.