Setting up Group Policy

The following demonstration outlines how to set up basic GPOs and applying them to an Active Directory user and computer account.


GPO Applied to AD User Account

Hide the "Run" Command from Start Menu via Group Policy (User Account GPO)

Objective: Prevent users from accessing the Run dialog (Win + R), which can limit their ability to manually launch control panels, scripts, or unauthorized apps.

1. In Server Manager click on the Tools drop-down in the upper right, then select Group Policy Management.

DR1.PNG

2. In Group Policy Management Expand the Forest domain.

DR2.PNG

3. Right-click on the domain and select Create a GPO in this domain, and Link it here...

DR3.PNG

4. Enter in a name for the New GPO, then click Ok.

DR4.PNG

5. Right-click on the New GPO in Group Policy Management and select Edit.

DR5.PNG

6. Under User Configuration navigate to User Configuration > Policies > Administraive Templates > Start Menu and Taskbar, then select Remove Run menu from Start Menu.

DR6.PNG

7. Select Enabled, click Apply, then Ok.

DR7.PNG



Disable Control Panel and Settings App via Group Policy (User Account GPO)

Objective: Prevent a user from accessing the Control Panel and Settings on a Windows domain-joined computer

1. In Server Manager click on the Tools drop-down in the upper right, then select Group Policy Management.

GP1.PNG GP1.PNG

2. Expand the Forest Domain on the leftt menu of Group Policy Management. Then right-click on the domain name to select "Create a GPO in this domain, and link it here.

GP3.PNG

3. Assign a name to the new GPO, then click Ok.

GP4.PNG

4. The new GPO will then be listed in the hierarchical stucture on the left. Right-click, the select Edit.

GP5.PNG

5. The Group Policy Management Editor window will come up. Navigate User Configuration > Policies > Administrative Template Policy definitions > Control Panel.

GP6.PNG

6. Click on Prohibit access to Control Panel and PC settings.

Images/GP7.PNG

7. Click on Enabled to the left. Then click Ok.

GP8.PNG




GPO Applied to AD Computer Account

Account Lockout Policy via Group Policy (User Account GPO)

One of the first GPO's that should be created upon spinning up a domain controller is setting the Active Directory User Account Lockout Policy.


1. In Server Manager click on the Tools drop-down in the upper right, then select Group Policy Management.

AccountL1.PNG

2. In Group Policy Management Expand the Forest Domain on the left menu, then click Create a GPO in this domain, and link it here..

AccountL2.PNG

3. Name the New GPO Account Lockout Policy.

AccountL3.PNG

4. The new GPO will then be listed in the hierarchical structure on the left. Right-click, then select Edit.

AccountL4.PNG

5. The Group Policy Management Editor window will come up. Navigate to Computer Configuration > Policies > Windows Settings > Account Policies > Account Lockout Policy.

AccountL5.PNG

6. Click on Account lockout threshold to the right.

AccountL6.PNG

7. Configure the Account lockout threshold Properties. For this example, I'm setting the duration to 3, click Apply, the Ok.

AccountL7.PNG


Adding a Custom Logon Message to domain connnected computers via Group Policy (User Account GPO)

Objective: Setting up a Custom Logon Message

1. Go back into Server Manager > Tools, then select Group Policy Management.

2. Right-click on Domain.1.microsoft.com domain entry under the forest hierarchy, and select Create a GPOin this domain and link it here....

CL1.PNG

3. This one will be named Custom Logon Message, then click Ok.


CL2.PNG

4. Right-click on the new created GPO and select Edit.

CL3.PNG

5. In Group Policy Management Editor, Under Computer Configuration navigate to Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > Security Options. Then select Interactive Logon: Message Title for users attempting to log on..

CL4.PNG

6. Set up the Message Title, then click Apply then Ok.

CL5.PNG


Disable USB Storage Devices to domain connected computers via Group Policy (User Account GPO)

Objective: Prevent all USB mass storage devices (e.g., flash drives) from working on domain-joined computers App via Group Policy (User Account GPO).

1. In Group Policy Editor navigate to Computer Configuration > Policies > Administrative Templates > System > Removable Storage Access. Then click-on All Removeable Storage classes: Deny all access.

RSD1.PNG

2. Select Enabled then click Ok

RSD2.PNG



Create a Security Group in Active Directory and link it to a GPO

Step 1: Create a Security Group in Active Directory

1. Open Active Directory Users and Computersd (dsa.msc)

SG1.PNG

2. Navigate to the OU where you want the group stored.

3. Right-click on the OU > New > Group

SG1.PNG

4. Click Ok

SG3.PNG

Result: There's now a New Security Group in ADUC.



Step 2: Add Users to the Group

1. Double-click the group you just created

2. Go to the Members tab

3. Click Add, and select the users you want the GPO to apply to

4.Click Ok

SG4.PNG SG5.PNG

Result: Those users are now group members



Step 3: Create and Link a new GPO

1. Open Group Policy Management (gpmc.msc)

SG6.PNG

2. Right-click the OU where the users reside in and select:

"Create a GPO in this domain, and Link it here..."

SG8.PNG

3. Name the GPO (e.g., Disable Control Panel

SG9.PNG

4. Right-click the new GPO > Edit, and configure your desired settings.

SG10.PNG SG12.PNG SG13.PNG

Result: GPO is created and linked



Step 4: Apply GPO to Security Group Using Security Filtering

1. In Group Policy Management, select your new GPO

SG15.PNG

2. In the Scope tab, under Security Filtering:

SG16.PNG SG17.PNG

Result: The GPO will now only apply to members of that group.


Important: Verify Group Has "Read" and "Apply Group Policy" Permissions

1. Still in GPMC, go to the Delegation tab of the GPO

2. Click Advanced

SG19.PNG

3. Confirm that group has these permissions

SG20.PNG

Step 5: Update and Test

This method provides you with the precise control over who receives the GPO, using Security Groups instead of broad OU application.

Back to Home