Two ways to prevent a specific user from running a program
Sometimes you need to share your computer with other users, but don't want them to run certain applications. This article will introduce two ways to prevent users from running specific programs in Windows 10 systems: using the local Group Policy Editor and the Registry Editor.
Method 1: Use the local group policy editor
The Local Group Policy Editor is a Microsoft Management Console (MMC) snap-in that allows administrators to edit local Group Policy Objects (GPOs) and disable computer or user settings.
The steps are as follows:
- Press Windows R to open the run window.
- Enter gpedit.msc and press Enter .
- Navigate to the following path: User Configuration\Administrative Templates\System .
- In the right panel, locate and double-click the "Do not run the specified Windows application" option.
- In a new window, select the "Enabled" option. Then click the Show button to display and add blocked programs.
- In the pop-up window, add the executable file name of the program you want to block, and then click OK . For example, enter notepad.exe here.
- In the Do not run the specified Windows application window, click Apply , and then click OK to make the changes take effect.
To allow users to run banned programs, you can adjust the Enabled button to Not Configured or Disabled .
Method 2: Use the Registry Editor
In addition to the local Group Policy Editor, you can also use the Registry Editor to prevent users from running specific programs.
The steps are as follows:
- Press Windows R to open the run window.
- Enter regedit and press Enter . When the User Account Control (UAC) window appears, select the Yes button.
- Navigate to the following location:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
- In the right panel, right-click any blank area and select New > DWORD (32-bit) Value . Name this value DisallowRun .
- Double-click the newly created DWORD value DisallowRun and set its value data to 1 .
- Right-click Explorer and select New > Key . Name the new key DisallowRun .
- Right-click the new key DisallowRun and select New > String Value . Name the value 1 .
- Double-click the value 1 . Then in the Value Dataframe, enter the target executable file name of the prohibited program and click OK .
If you want to prevent users from running multiple programs, just right-click the DisallowRun key and create multiple string values, name them 1, 2, 3, etc. in numerical order, and then follow the above steps to fill in the corresponding exe file name for each string value.
Choose your preferred method to complete this task.
Software recommendations
Sometimes your application may be lost for some reason. For example, the application is lost after a Windows 10 upgrade. To recover lost or uninstalled programs, you can try MiniTool Power Data Recovery. MiniTool Power Data Recovery not only restores programs, but also restores Word recent documents that are not displayed, restores downloaded files, restores images, videos, audio, and more.
Summarize
This article describes how to use the local Group Policy Editor and Registry Editor to prevent users from running specific programs in Windows 10. If you have any questions about this topic, feel free to leave a comment below.
The above is the detailed content of 2 Ways to Prevent Users From Running Certain Programs. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

This Google translate picture guide shows you how to translate text from an image. If you are looking for more computer tips and solutions, you can visit php.cn Software official website where you can also find some useful computer tools like php.cn

If your Windows 11/10 computer doesn’t automatically the latest versions of device drivers, you will need to manually install them. In this post, php.cn Software will show you 3 different methods to manually install drivers on your device.

This post summarized on php.cn official website mainly introduces you nine ways to open Task Scheduler in Windows 10 together with the latest Windows 11. Generally, these methods are similar in both systems with just a little difference.

This post delivered by php.cn official web page introduces three methods to improve microphone volume and boost its performance, in Control Panel, via Settings, and by Device Manager. Read the below content to view details.

This post includes answers for what is dxdiag, how to run dxdiag in Windows 10/11, DirectX Diagnostic Tool’s main functions, and how to update dxdiag.exe driver. php.cn Software also provides many other computer tips and solutions for users. You can

The operating system is the basic software for managing hardware resources, running programs, and providing user interaction interfaces. It coordinates the relationship between hardware and software and is responsible for memory allocation, device scheduling, file management and multitasking. Common systems include Windows (suitable for office and gaming), macOS (Apple devices, suitable for creative work), Linux (open source, suitable for developers), and Android/iOS (mobile device system). The choice of ordinary users depends on the usage scenario, such as software compatibility, security and customization requirements. How to view system information: Use winver command for Windows, click on the machine for macOS, use terminal commands for Linux, and find the phone in settings. The operating system is the underlying tool for daily use,

Have you ever wanted to adjust computer settings to fix some issues but suffered from Control Panel not opening? There is nothing more frustrating than this app not turning on, stopping you from viewing and changing system settings. In this post, mul

Learn how to access and use Google Password Manager to manage your saved passwords in your Google Account. If you want a more comprehensive third-party free password management tool, this post also lists the top 3 alternatives to Google Password Mana
