This guide outlines how to restrict or control the applications that users can run in a Windows domain environment using Group Policy Management Console (gpmc.msc). The goal is to enhance security on domain-joined machines and the Remote Desktop server (server1.cloud.domain.com.au) by limiting user access to approved applications only, or by explicitly blocking known security risks. This is particularly useful in environments where users access systems remotely or via terminal sessions, and where tighter control over application execution is required.
You must have Domain Admin rights.
You are editing Group Policy using gpmc.msc on a Domain Controller.
Your environment includes:
A domain controller server1.cloud.domain.com.au
Windows domain-joined computers
Users connecting via RDP to server1
Open Group Policy Management Console (gpmc.msc)
Navigate to:
Forest: cloud.domain.com.au > Domains > cloud.domain.com.au
Right-click Group Policy Objects > New
Name the new policy:
App Restrictions Policy
Click OK
Right-click the domain cloud.domain.com.au
Choose Link an Existing GPO...
Select App Restrictions Policy
Right-click the OU(s) for:
Remote Desktop Servers (containing server1)
Domain Workstations
Choose Link an Existing GPO...
Select App Restrictions Policy
Right-click App Restrictions Policy > Edit
Navigate to:
User Configuration > Administrative Templates > System
Double-click Don't run specified Windows applications
Set to Enabled
Click Show... and list apps to block:
cmd.exe
powershell.exe
regedit.exe
nmap.exe
wireshark.exe
Click OK > Apply
In the same GPO editor, go to:
User Configuration > Administrative Templates > System
Double-click Run only specified Windows applications
Set to Enabled
Click Show... and list only approved apps:
explorer.exe
chrome.exe
yourapp.exe
notepad.exe
Click OK > Apply
On all target computers including server1:
Run services.msc
Find Application Identity
Set Startup Type to Automatic, then Start it
In App Restrictions Policy, navigate to:
Computer Configuration > Windows Settings > Security Settings > Application Control Policies > AppLocker
Right-click Executable Rules > Create Default Rules
Allows essential system operations
To deny specific applications:
Right-click Executable Rules > Create New Rule
Action: Deny
User or Group: Domain Users
Condition: Path
Path: C:\Program Files\Nmap\nmap.exe
To allow a specific app:
Action: Allow
Path: C:\Program Files\YourApp\yourapp.exe
Set AppLocker to enforce rules:
Right-click AppLocker > Properties
Set Executable Rules to Enforce Rules
Run the following on all target machines:
gpupdate /force
Confirm with:
gpresult /h result.html
start result.html
AppLocker logs can be viewed in Event Viewer:
Applications and Services Logs > Microsoft > Windows > AppLocker > EXE and DLL
Use Security Filtering to target specific user groups or computers
Test policies in a small OU before full deployment
Combine AppLocker with Group Policy for tighter control
Maintain a fallback local admin account to avoid lockout