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) · Sudo.admx

Sudo.admx: 1 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.

Configure the behavior of the sudo command

Per machine Windows 11Windows Server 2025

Supported on: At least Windows 11

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKLM\Software\Policies\Microsoft\Windows\Sudo
OptionValueTypeAllowed values
Maximum allowed sudo modeEnabled0 (REG_DWORD) = Disabled
1 (REG_DWORD) = Force new window
2 (REG_DWORD) = Disable input
3 (REG_DWORD) = Normal
What it does (vendor explanation)

This policy setting controls use of the sudo.exe command line tool.

If you enable this policy setting, then you may set a maximum allowed mode to run sudo in. This restricts the ways in which users may interact with command-line applications run with sudo. You may pick one of the following modes to allow sudo to run in:

"Disabled": sudo is entirely disabled on this machine. When the user tries to run sudo, sudo will print an error message and exit.

"Force new window": When sudo launches a command line application, it will launch that app in a new console window.

"Disable input": When sudo launches a command line application, it will launch the app in the current console window, but the user will not be able to type input to the command line app. The user may also choose to run sudo in "Force new window" mode.

"Normal": When sudo launches a command line application, it will launch the app in the current console window. The user may also choose to run sudo in "Force new window" or "Disable input" mode.

If you disable this policy or do not configure it, the user will be able to run sudo.exe normally (after enabling the setting in the Settings app).

Group Policy path: Computer Configuration > Administrative Templates > System > Configure the behavior of the sudo command

PowerShell equivalent (generated from the template)
# Maximum allowed sudo mode
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Sudo' -Name 'Enabled' -Value 0 -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".

ADMX: Sudo.admx · policy name EnableSudo