How to Block Applications with GPO and AppLocker on Windows 10/11
- Last updated: Sep 6, 2026
As a system administrator, it is important to prevent users from installing or running unauthorized applications on company computers. The Microsoft Store can provide access to applications that may not be approved for corporate use, making it useful to restrict or block access in managed Windows environments.
In this guide, you will learn how to block applications using Group Policy (GPO) and built-in Windows application control features. The examples include blocking the Microsoft Store as well as restricting other applications installed on Windows 10 and Windows 11.
We will cover two methods: Software Restriction Policies (SRP), a legacy solution mainly relevant to Windows 10 environments, and AppLocker, the more modern application control solution available on Windows 10 and Windows 11.
Creating the Group Policy Object
On the Active Directory server, create a new Group Policy Object (GPO) to manage application restrictions on domain-joined Windows computers.
- Open the Group Policy Management console by running
gpmc.msc:
gpmc.msc.- Right-click the Organizational Unit (OU) that contains your computer accounts, then select Create a GPO in this domain, and Link it here...:
- Enter a descriptive name for the new Group Policy Object (GPO), for example
Blocking Windows Store:
Using Software Restriction Policies (SRP) – Windows 10
- Right-click the previously created GPO, then select Edit...:
- Navigate to Computer Configuration > Policies > Windows Settings > Security Settings > Software Restriction Policies. Right-click Software Restriction Policies, then select New Software Restriction Policies:
- Go to Software Restriction Policies > Additional Rules, right-click Additional Rules, then select New Path Rule...:
- In the Path field, enter
%programfiles%\WindowsApps\Microsoft.WindowsStore*, then set the Security Level to Disallowed:
Using AppLocker (Windows 10 & 11)
Enable the Application Identity Service
AppLocker requires the Application Identity service to be running in order to enforce application control rules. You can configure this service to start automatically through the same Group Policy Object (GPO).
- Navigate to Computer Configuration > Policies > Windows Settings > Security Settings > System Services. Open the Application Identity service properties, enable Define this policy setting, then set the startup mode to Automatic:
Generating the XML Rules File
To create the AppLocker rules, use a Windows 10 or Windows 11 computer. The rules will be generated locally and then exported to an XML file, which can later be imported into the Group Policy Object (GPO) on the domain controller.
- Open the Local Group Policy Editor by running
gpedit.mscfrom the Windows Run dialog:
gpedit.msc.- Navigate to Computer Configuration > Windows Settings > Security Settings > Application Control Policies > AppLocker > Packaged app Rules. Right-click Packaged app Rules, then select Automatically Generate Rules...:
- Leave the default options selected, then click Next:
- Uncheck Reduce the number of rules created by grouping similar applications, then click Next:
- Once the analysis is complete, review the generated rules, then click Create to add them to the AppLocker policy:
- After the rules are created, right-click AppLocker, select Export Policy..., save the policy as an XML file, then copy it to your Active Directory server:
- The raw exported AppLocker XML policy defines an exact package version for each application rule. As a result, the rule may no longer match after the application is updated:
- To ensure the rule applies to all versions of the application, remove the specific package version and select And above:
- To avoid manually editing hundreds of AppLocker rules, use the following PowerShell command to replace the package version ranges in the exported XML policy with wildcards:
PS C:\> $(Get-Content .\AppLocker.xml -Raw -Encoding UTF8) -replace ".*BinaryVersionRange LowSection.*",' <BinaryVersionRange LowSection="*" HighSection="*" />' | Out-File -FilePath .\AppLocker_modifie.xml
This creates a new AppLocker_modified.xml policy in which the affected rules are configured to match all application versions.
Alternatively, you can download the pre-modified AppLocker XML policy here: AppLocker.xml.
Blocking the Windows Store (and Other Windows Apps)
- In Group Policy Management, right-click the previously created GPO, then select Edit...:
- Navigate to Computer Configuration > Policies > Windows Settings > Security Settings > Application Control Policies. Right-click AppLocker, select Import Policy..., choose the previously created XML file, then confirm the import:
- After importing the policy, open Packaged app Rules, locate the
Microsoft.WindowsStorerule, then right-click it and select Properties. You can use the same method to restrict other packaged apps such as Xbox, Zune, or other applications included in the ruleset:
- In the rule properties, select Deny under Action, then open the Publisher tab:
- In the Publisher tab, clear the Package version field and select And above so the rule applies to all versions of the application. Click OK to save the changes:
- To enable enforcement, right-click AppLocker, select Properties, then under Packaged app Rules, check Configured and select Enforce rules. Click OK to apply the settings:
Blocking Other Applications (Non-Windows Apps)
As an alternative, you can create explicit Allow rules for trusted Microsoft-signed applications.
As an example, we'll use Google Chrome to demonstrate how to block a traditional desktop application with AppLocker.
- Under Executable Rules, select Create Default Rules to add the standard allow rules for Windows and Program Files. This helps prevent essential system applications from being unintentionally blocked:
- Under Executable Rules, select Create New Rule... to create a custom AppLocker rule for the application you want to block:
- On the Before You Begin page, click Next to continue:
- On the Permissions page, select Deny to block the application, then click Next:
- Choose the rule condition. Three options are available:
– Path: easy to configure, but also easy to bypass, so it is not recommended for strong application control.
– Hash: reliable, but harder to maintain because the rule must be updated when the application changes.
– Publisher: the most flexible and recommended option for signed applications.
- Click Browse, select the executable file of the application you want to block, then click Open. In this example, the selected file is
chrome.exe:
- Adjust the slider to define how specific the Publisher rule should be. In this example, keep the rule scoped to
CHROME.EXEwhile leaving the File version set to*, so the rule applies to all versions of Google Chrome. Then click Next:
chrome.exe across all versions.- On the Exceptions page, leave the list empty unless you need to exclude specific files or publishers from the rule, then click Next:
- On the Name and Description page, review or customize the rule name, optionally add a description, then click Create:
- Finally, right-click AppLocker, select Properties, then under Executable Rules, check Configured and select Enforce rules. Click OK to apply the settings and enforce the blocking rule:
Troubleshooting: Unblocking Legitimate Applications
In some cases, legitimate applications may be blocked depending on their location or execution context — for example, when they are launched from directories outside Program Files. This section explains how to identify the blocked executable and create an appropriate allow rule.
Tracing Blocked Applications
- On the affected computer, open Windows Event Viewer by running
eventvwrfrom the Windows Run dialog:
eventvwr to investigate AppLocker events.- Navigate to Applications and Services Logs > Microsoft > Windows > AppLocker > EXE and DLL. Review the error events to identify which executable was blocked and why:
Once the blocked executable has been identified, create an explicit Allow rule in AppLocker to permit it to run.
Allowing All Executables in a Folder
Although this approach is less restrictive and should be used with caution, you may need to allow applications stored in a specific trusted folder, for example for development tools or portable applications.
- Create an Allow rule using the Path condition, then enter
C:\ALLOWED_EXE\*. The wildcard (*) allows executable files located in this folder and its subfolders:
C:\ALLOWED_EXE\ and its subfolders.User Experience When Microsoft Store Is Blocked
- Once the AppLocker policy is enforced, users attempting to launch the Microsoft Store will see the following warning message: