Creating Group Policy to prevent users to run programs installed outside the normal installation folder like C:\Program

Em Catimbang 6 Reputation points
2022-05-11T02:26:59.713+00:00

How to begin with?

I have tried with a GPO with the following Computer and User Configuration settings:
Application Whitelist> Policies> Windows Settings> Security Settings> Software Restriction Policies/Additional Rules

Set C:\TEST with Disallowed Security Level

This is to test if a program installed in C:\TEST drive will be blocked.
I get this from gpresult /r

COMPUTER SETTINGS

The following GPOs were not applied because they were filtered out

Application Whitelist
Filtering: Denied (Security)

USER SETTINGS

Applied Group Policy Objects

Default Domain Policy
MapDrives
AllPrinters
Office Macros
Application Whitelist

But still I can run a program installed in C:\TEST.

What am I missing?
Looking for a solution to block a program installed on other drives or location.

Thank you

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,417 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,569 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,646 Reputation points
    2022-05-13T07:57:02.947+00:00

    Hi EmCatimbang-8232,

    If you want to block programs from running on your system/network, you can easily create a Group Policy Object (GPO) to make that happen.

    This is the traditional way of blocking software and it has limited performance as we explain below:

    1) Launch REGEDIT
    2) Expand USER CONFIGURATION > POLICIES > ADMINISTRATIVE TEMPLATES > SYSTEM
    3) Double click on DON’T TUN SPECIFIED WINDOWS APPLICATIONS
    4) Click ENABLE
    5) Click the SHOW button
    6) Type in the file name you want to block

    This method should allow you to achieve what you're looking for. However, the problems with this method are:

    This method only works per user and not per machine.
    You can only use filenames, no paths, hashes or certificates. Think about what that means for UPDATE.EXE which you likely have 20 of for 20 different programs on your computer… not good.
    This policy setting only prevents users from running programs that are started by the File Explorer process. It does not prevent users from running programs, such as Task Manager, which are started by the system process or by other processes. Also, if users have access to the command prompt (Cmd.exe), this policy setting does not prevent them from starting programs in the command window even though they would be prevented from doing so using File Explorer.


    --If the reply is helpful, please Upvote and Accept as answer--

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.