windows-itpro-docs/windows/client-management/mdm/policy-csp-admx-shellcommandpromptregedittools.md
nimishasatapathy 80978a1f25 Updated
2021-10-05 16:05:30 +05:30

8.9 KiB

title, description, ms.author, ms.localizationpriority, ms.topic, ms.prod, ms.technology, author, ms.date, ms.reviewer, manager
title description ms.author ms.localizationpriority ms.topic ms.prod ms.technology author ms.date ms.reviewer manager
Policy CSP - ADMX_ShellCommandPromptRegEditTools Policy CSP - ADMX_ShellCommandPromptRegEditTools dansimp medium article w10 windows manikadhiman 09/18/2020 dansimp

Policy CSP - ADMX_ShellCommandPromptRegEditTools


ADMX_ShellCommandPromptRegEditTools policies

Tip

This is an ADMX-backed policy and requires a special SyncML format to enable or disable. For details, see Understanding ADMX-backed policies.

You must specify the data type in the SyncML as <Format>chr</Format>. For an example SyncML, refer to Enabling a policy.

The payload of the SyncML must be XML-encoded; for this XML encoding, there are a variety of online encoders that you can use. To avoid encoding the payload, you can use CDATA if your MDM supports it. For more information, see CDATA Sections.

ADMX_ShellCommandPromptRegEditTools/DisallowApps
ADMX_ShellCommandPromptRegEditTools/DisableRegedit
ADMX_ShellCommandPromptRegEditTools/DisableCMD
ADMX_ShellCommandPromptRegEditTools/RestrictApps

ADMX_ShellCommandPromptRegEditTools/DisallowApps

Edition Windows 10 Windows 11
Home No No
Pro No No
Business No No
Enterprise Yes Yes
Education Yes Yes

Scope:

[!div class = "checklist"]

  • User

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.

ADMX Info:

  • GP Friendly name: Prevent access to the command prompt
  • GP name: DisallowApps
  • GP path: System
  • GP ADMX file name: ShellCommandPromptRegEditTools.admx

ADMX_ShellCommandPromptRegEditTools/DisableRegedit

Edition Windows 10 Windows 11
Home No No
Pro No No
Business No No
Enterprise Yes Yes
Education Yes Yes

Scope:

[!div class = "checklist"]

  • User

This policy setting 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.

ADMX Info:

  • GP Friendly name: Prevent access to registry editing tools
  • GP name: DisableRegedit
  • GP path: System\Server Manager
  • GP ADMX file name: ShellCommandPromptRegEditTools.admx

ADMX_ShellCommandPromptRegEditTools/DisableCMD

Edition Windows 10 Windows 11
Home No No
Pro No No
Business No No
Enterprise Yes Yes
Education Yes Yes

Scope:

[!div class = "checklist"]

  • User

This policy setting 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.

Non-Microsoft applications with Windows 2000 or later certification are required to comply with this policy setting.

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).

ADMX Info:

  • GP Friendly name: Run only specified Windows applications
  • GP name: DisableCMD
  • GP path: System
  • GP ADMX file name: ShellCommandPromptRegEditTools.admx

ADMX_ShellCommandPromptRegEditTools/RestrictApps

Edition Windows 10 Windows 11
Home No No
Pro No No
Business No No
Enterprise Yes Yes
Education Yes Yes

Scope:

[!div class = "checklist"]

  • User

This policy setting 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.

Non-Microsoft applications with Windows 2000 or later certification are required to comply with this policy setting.

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).

ADMX Info:

  • GP Friendly name: Don't run specified Windows applications
  • GP name: RestrictApps
  • GP path: System
  • GP ADMX file name: ShellCommandPromptRegEditTools.admx