Registry data refreshed from vendors: Last vendor change detected: 5 Dec 2026Next refresh: 1st of the monthApp v1.4.0 (5 Dec 2026): Cleanup or tattoo: see what stays behind after a GPO is removed. Release notes
Windows (ADMX) · Shell-CommandPrompt-RegEditTools.admx

Shell-CommandPrompt-RegEditTools.admx: 4 policies

Generated from Microsoft Windows Server 2025 Datacenter build 26100 in-box templates + Windows 11 ADMX package (download id 108394) on 2026-12-05. Titles, explanations and "Supported on" text are Microsoft's own, from the en-US ADML file.

Don't run specified Windows applications

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 keyHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value nameDisallowRun
OptionValueTypeAllowed values
List of disallowed applicationsSoftware\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

Prevent access to registry editing tools

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 keyHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System
OptionValueTypeAllowed values
Disable regedit from running silently?DisableRegistryTools2 (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

Prevent access to the command prompt

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 keyHKCU\Software\Policies\Microsoft\Windows\System
OptionValueTypeAllowed values
Disable the command prompt script processing also?DisableCMD1 (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

Run only specified Windows applications

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 keyHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value nameRestrictRun
Enabled writes1 (REG_DWORD)
Disabled writes0 (REG_DWORD)
OptionValueTypeAllowed values
List of allowed applicationsSoftware\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