Windows & Linux · AD Domain Lab · Setting up Group Policy

Setting up Group Policy

Create and link GPOs, then scope them to users or computers. These examples cover common user restrictions, security baselines, and security filtering with AD groups.

The following demonstration outlines how to set up basic GPOs and apply them to Active Directory user and computer accounts.

GPO Applied to AD User Account

Hide the “Run” Command from Start Menu (User GPO)

Objective: Prevent users from accessing Run (Win+R) to limit launching tools or scripts.

1) Open Group Policy Management

Server Manager → ToolsGroup Policy Management.

Open Group Policy Management from Server Manager

2) Expand the Forest/Domain

GPMC forest and domain view

3) Create & Link a GPO at the Domain

Right-click the domain → Create a GPO in this domain, and Link it here…

Create and link GPO dialog

4) Name the GPO

New GPO name

5) Edit the GPO

Edit GPO context menu

6) Configure the Setting

User Configuration → Policies → Administrative Templates → Start Menu and TaskbarRemove Run menu from Start Menu

Remove Run menu policy path

7) Enable the Policy

Enable Remove Run menu policy

Disable Control Panel and Settings (User GPO)

Objective: Block access to Control Panel and the Settings app on domain-joined clients.

1) Open GPMC & Create GPO

Open GPMC
Domain structure in GPMC

2) Create & Link at Domain

Create and link GPO

3) Name the GPO

Name new GPO

4) Edit the GPO

Edit GPO

5) Configure the Setting

User Configuration → Policies → Administrative Templates → Control PanelProhibit access to Control Panel and PC settings

Control Panel policy path

6) Enable the Policy

Policy selection
Enable prohibit Control Panel policy

GPO Applied to AD Computer Account

Account Lockout Policy (Computer GPO)

One of the first domain security baselines: define lockout threshold/duration to mitigate brute-force attempts.

1) Open GPMC

Open GPMC from Server Manager

2) Create & Link a New GPO

Create and link Account Lockout GPO

3) Name the GPO

Account Lockout Policy GPO name

4) Edit the GPO

Edit Account Lockout GPO

5) Configure Policies

Computer Configuration → Policies → Windows Settings → Security Settings → Account Policies → Account Lockout Policy

Account Lockout Policy path

6) Set Threshold

Open Account lockout threshold

7) Example Configuration

Choose a threshold (e.g., 3 invalid attempts), and define lockout duration/reset values.

Configure lockout threshold

Custom Logon Message (Computer GPO)

Objective: Display a legal/banner message at sign-in.

1) Create & Link a New GPO

GPMC → Right-click the domain → Create a GPO in this domain, and Link it here…

Create Custom Logon Message GPO

2) Name the GPO

Name Custom Logon Message GPO

3) Edit the GPO

Edit Custom Logon Message GPO

4) Configure Security Option

Computer Configuration → Policies → Windows Settings → Security Settings → Local Policies → Security OptionsInteractive logon: Message title for users attempting to log on (and the accompanying Message text).

Security Options path

5) Set the Message

Configure logon message title

Disable USB Storage Devices (Computer GPO)

Objective: Block USB mass-storage devices on domain-joined computers.

1) Configure Removable Storage Access

Computer Configuration → Policies → Administrative Templates → System → Removable Storage AccessAll Removable Storage classes: Deny all access

Removable Storage Access policy path

2) Enable Policy

Enable deny all access

Create a Security Group and Scope a GPO with Security Filtering

Step 1: Create a Security Group in AD

  1. Open Active Directory Users and Computers (dsa.msc).
  2. Navigate to the desired OU → Right-click → New → Group.
  3. Name it (e.g., GPO Testers), Type: Security, Scope: Global.
ADUC open
Create new group
Group properties

Step 2: Add Users to the Group

  1. Open the group → Members tab → Add users → OK.
Add members to group
Members list

Step 3: Create & Link a New GPO

  1. Open Group Policy Management (gpmc.msc).
  2. Right-click the target OU → Create a GPO in this domain, and Link it here…
  3. Name it (e.g., Disable Control Panel) → Edit and configure settings.
GPMC open
Create and link GPO at OU
Name GPO
Edit GPO view
Example settings
Example settings 2

Step 4: Security Filtering

  1. Select the GPO → Scope tab → Under Security Filtering remove Authenticated Users and add your new security group.
GPO scope tab
Security filtering edit
Group added to filtering

Verify Permissions

  1. GPO → Delegation tab → Advanced → ensure the group has Read and Apply group policy.
Delegation tab
Advanced security - permissions

Step 5: Update & Test

This approach provides precise targeting via security groups instead of broad OU application.

Back to Home