Open in the explorer

Remove Windows Security item from Start menu

Supprimer l’élément Sécurité Windows du menu Démarrer

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Remote Session Environment FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Environnement de session à distance
Supported on
At least Windows 2000 Terminal Services FR: Au minimum les services Terminal Server Windows 2000
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_NoSecurityMenu

Explanation

Specifies whether to remove the Windows Security item from the Settings menu on Remote Desktop clients. You can use this setting to prevent inexperienced users from logging off from Remote Desktop Services inadvertently.

If the status is set to Enabled, Windows Security does not appear in Settings on the Start menu. As a result, users must type a security attention sequence, such as CTRL+ALT+END, to open the Windows Security dialog box on the client computer.

If the status is set to Disabled or Not Configured, Windows Security remains in the Settings menu.

French text from Windows 11 26H2

Spécifie si l’élément Sécurité Windows doit être supprimé du menu Paramètres sur les clients des services Bureau à distance. Vous pouvez utiliser ce paramètre pour empêcher les utilisateurs peu expérimentés de se déconnecter des services Bureau à distance par inadvertance.

Si vous activez ce paramètre, l’élément Sécurité Windows n’apparaît pas dans le menu Paramètres du menu Démarrer. Par conséquent, les utilisateurs doivent entrer une séquence de touches de sécurité, telle que CTRL+ALT+FIN pour ouvrir la boîte de dialogue Sécurité Windows sur l’ordinateur client.

Si vous désactivez ce paramètre ou ne le configurez pas, l’élément Sécurité Windows reste dans le menu Paramètres.

Registry

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value name
NoNTSecurity
StateValue written
Enablednot defined in the ADMX
Disablednot defined in the ADMX

PowerShell

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

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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: TerminalServer/TS_NoSecurityMenu
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoNTSecurity' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: TerminalServer/TS_NoSecurityMenu
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoNTSecurity' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": TerminalServer/TS_NoSecurityMenu
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoNTSecurity' -ErrorAction SilentlyContinue

Availability