1. Home
  2. Knowledge Base
  3. SureMDM
  4. How to block powershell, cmd prompt and reg editor on windows device 
  1. Home
  2. Knowledge Base
  3. Windows Management
  4. How to block powershell, cmd prompt and reg editor on windows device 

How to block powershell, cmd prompt and reg editor on windows device 

Purpose

This KB article provides step-by-step instructions on how to block PowerShell, Command Prompt, and Registry Editor on Windows devices.

Prerequisites

Windows 10 or above.

Steps

  1. Login to SureMDM console.
  2. Navigate to Profile → Windows → select the Default Profile (or create a new profile as required) and click Modify → App Locker.
  3. In the App Locker configuration, click Blocklist Apps, scroll down to the Add Apps section, and select Add.
  4. An App Locker window will appear. Select Custom App, then configure it as follows:

             > Set App Type to EXE

             >  Set Condition to Path

             >  Enter the following paths:

                 C:\Windows\regedit.exe

                 C:\Windows\SysWOW64\regedit.exe

                 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

                 C:\Windows\System32\cmd.exe

  1.  Please refer to the image below for reference.
  1. Save and apply the profile on the devices.

Results:

The application will be blocked, and an error message will be displayed, as shown below.

Conclusion

By configuring App Locker through SureMDM, administrators can effectively block access to PowerShell, Command Prompt, and Registry Editor on Windows devices. This restriction helps prevent unauthorized system-level changes, enhances device security, and ensures compliance with organizational policies. Once the profile is applied, the specified applications will be inaccessible to end users, and any attempt to launch them will result in an error message, confirming that the policy is enforced successfully.

Need more help? Here’s how to get help from our experts. 

CONTACT US

Was this helpful?
YesNo
Updated on January 2026
Need Support?
Can't find the answer you're looking for?
Contact Support