Open in the explorer

Turn off legacy remote shutdown interface

Désactiver l’interface d’arrêt à distance héritée

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Shutdown Options FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Options d’arrêt
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
WinInit.admx
Internal name
WinInit/DisableNamedPipeShutdownPolicyDescription

Explanation

This policy setting controls the legacy remote shutdown interface (named pipe). The named pipe remote shutdown interface is needed in order to shutdown this system from a remote Windows XP or Windows Server 2003 system.

If you enable this policy setting, the system does not create the named pipe remote shutdown interface.

If you disable or do not configure this policy setting, the system creates the named pipe remote shutdown interface.

French text from Windows 11 26H2

Ce paramètre de stratégie contrôle l’interface d’arrêt à distance héritée (canal nommé). L’interface d’arrêt à distance de canal nommé est nécessaire pour fermer ce système à partir d’un système Windows XP ou Windows Server 2003 distant.

Si ce paramètre de stratégie est activé, le système ne crée pas l’interface d’arrêt à distance de canal nommé.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, le système crée l’interface d’arrêt à distance de canal nommé.

Registry

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
Value name
DisableShutdownNamedPipe
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: WinInit/DisableNamedPipeShutdownPolicyDescription
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableShutdownNamedPipe' -Value 1 -Type DWord

Disable

# Disable: WinInit/DisableNamedPipeShutdownPolicyDescription
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableShutdownNamedPipe' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": WinInit/DisableNamedPipeShutdownPolicyDescription
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
Remove-ItemProperty -Path $k -Name 'DisableShutdownNamedPipe' -ErrorAction SilentlyContinue

Availability