Per user Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows 2000
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer |
|---|
| Value name | DisallowRun |
|---|
| Option | Value | Type | Allowed values |
|---|
| List of disallowed applications | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun\(list subkey) | REG_SZ (one value per entry) | One value per list entry |
What it does (vendor explanation)
Prevents Windows from running the programs you specify in this policy setting.
If you enable this policy setting, users cannot run programs that you add to the list of disallowed applications.
If you disable this policy setting or do not configure it, users can run any programs.
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.
Note: Non-Microsoft applications with Windows 2000 or later certification are required to comply with this policy setting.
Note: To create a list of allowed applications, click Show. In the Show Contents dialog box, in the Value column, type the application executable name (e.g., Winword.exe, Poledit.exe, Powerpnt.exe).
Group Policy path: User Configuration > Administrative Templates > System > Don't run specified Windows applications
File Explorer and desktopADMX: Shell-CommandPrompt-RegEditTools.admx · policy name DisallowApps
Per user Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows 2000
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System |
|---|
| Option | Value | Type | Allowed values |
|---|
| Disable regedit from running silently? | DisableRegistryTools | | 2 (REG_DWORD) = Yes 1 (REG_DWORD) = No |
What it does (vendor explanation)
Disables the Windows registry editor Regedit.exe.
If you enable this policy setting and the user tries to start Regedit.exe, a message appears explaining that a policy setting prevents the action.
If you disable this policy setting or do not configure it, users can run Regedit.exe normally.
To prevent users from using other administrative tools, use the "Run only specified Windows applications" policy setting.
Group Policy path: User Configuration > Administrative Templates > System > Prevent access to registry editing tools
PowerShell equivalent (generated from the template)
# Disable regedit from running silently?
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'DisableRegistryTools' -Value 2 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
File Explorer and desktopADMX: Shell-CommandPrompt-RegEditTools.admx · policy name DisableRegedit
Per user Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows 2000
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKCU\Software\Policies\Microsoft\Windows\System |
|---|
| Option | Value | Type | Allowed values |
|---|
| Disable the command prompt script processing also? | DisableCMD | | 1 (REG_DWORD) = Yes 2 (REG_DWORD) = No |
What it does (vendor explanation)
This policy setting prevents users from running the interactive command prompt, Cmd.exe. This policy setting also determines whether batch files (.cmd and .bat) can run on the computer.
If you enable this policy setting and the user tries to open a command window, the system displays a message explaining that a setting prevents the action.
If you disable this policy setting or do not configure it, users can run Cmd.exe and batch files normally.
Note: Do not prevent the computer from running batch files if the computer uses logon, logoff, startup, or shutdown batch file scripts, or for users that use Remote Desktop Services.
Group Policy path: User Configuration > Administrative Templates > System > Prevent access to the command prompt
PowerShell equivalent (generated from the template)
# Disable the command prompt script processing also?
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\System' -Name 'DisableCMD' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
File Explorer and desktopADMX: Shell-CommandPrompt-RegEditTools.admx · policy name DisableCMD
Per user Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows 2000
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer |
|---|
| Value name | RestrictRun |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
| Option | Value | Type | Allowed values |
|---|
| List of allowed applications | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun\(list subkey) | REG_SZ (one value per entry) | One value per list entry |
What it does (vendor explanation)
Limits the Windows programs that users have permission to run on the computer.
If you enable this policy setting, users can only run programs that you add to the list of allowed applications.
If you disable this policy setting or do not configure it, users can run all applications.
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.
Note: Non-Microsoft applications with Windows 2000 or later certification are required to comply with this policy setting.
Note: To create a list of allowed applications, click Show. In the Show Contents dialog box, in the Value column, type the application executable name (e.g., Winword.exe, Poledit.exe, Powerpnt.exe).
Group Policy path: User Configuration > Administrative Templates > System > Run only specified Windows applications
PowerShell equivalent (generated from the template)
New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'RestrictRun' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
File Explorer and desktopADMX: Shell-CommandPrompt-RegEditTools.admx · policy name RestrictApps