As a responsible system administrator in a company, you don't want to let your users install or run any unauthorized programs on their computers (yes, they are often poorly educated about security). The Windows Store is an open door to this type of behavior, so it may be worthwhile to prevent it from running on the company's computers.
And that's exactly what I'm going to talk about in the following article (how lucky you are…). In fact, this method can be used to block any application you want.
We will see how to do this using Software Restriction Policies (Windows 10 only) or with Application Control Policies/AppLocker (available on both Windows 10 and Windows 11).
From our Active Directory server we will create a new GPO.
In the latest edition of Windows 11, Microsoft has completely disabled Software Restriction Policies functionality. In fact, it has been deprecated starting with Windows 10 build 1803. We can still prevent users from launching specific applications using AppLocker, which is the evolution of Software Restriction Policies.
AppLocker works with the Application Identity service, so we need this service to be running to make it work. GPO can be used to force this service to run.
To create our rules, we need to connect to a Windows 11 computer in order to create default rules which will be imported later into our GPO.
PS C:\> $(Get-Content .\AppLocker.xml -Raw -Encoding UTF8) -replace ".*BinaryVersionRange LowSection.*",' <BinaryVersionRange LowSection="*" HighSection="*" />' | Out-File -FilePath .\AppLocker_modifie.xml
Or you can download my modified xml file here: AppLocker.xml.
⚠️Note: Even if the application to be blocked is not a Windows Apps, you will need to import (via the xml file) and activate the Packaged app Rules as explained above. Otherwise, you might experience malfunctions when activating the AppLocker's Executable Rules. This means you won't be able to run the Windows Start menu or any application that depends on WindowsApps. The other option is to create an editor rule that authorizes all Microsoft applications.⚠️
As an example, we'll look at how to block the Chrome Browser, aka the mole.
Depending on the configuration and the applications used, you may find yourself in situations where legitimate applications are blocked. For example, if the application is executed in folders outside of ProgramFiles. Here we will see how to unblock this kind of situation.
All that remains here is to add a rule allowing the application.
Even if it is not recommended, you may need to allow all executables inside a folder.
Contact :