Turn off legacy remote shutdown interface
Désactiver l’interface d’arrêt à distance héritée
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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