Open in the explorer

Hide "Windows Features"

Masquer Fonctionnalités Windows

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Control Panel › Programs FR: Configuration utilisateur › Stratégies › Modèles d'administration › Panneau de configuration › Programmes
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
Programs.admx
Internal name
Programs/NoWindowsFeatures

Explanation

This setting prevents users from accessing the "Turn Windows features on or off" task from the Programs Control Panel in Category View, Programs and Features in Classic View, and Get Programs. As a result, users cannot view, enable, or disable various Windows features and services.

If this setting is disabled or is not configured, the "Turn Windows features on or off" task will be available to all users.

This setting does not prevent users from using other tools and methods to configure services or enable or disable program components.

French text from Windows 11 26H2

Ce paramètre empêche les utilisateurs d'accéder à la tâche Activer ou désactiver des fonctionnalités Windows du Panneau de configuration des programmes en mode Affichage des catégories, à Programmes et fonctionnalités en mode Affichage classique et à Obtenir les programmes. Par conséquent, les utilisateurs ne peuvent pas afficher, activer ni désactiver plusieurs fonctionnalités et services Windows.

Si ce paramètre est désactivé ou s'il n'est pas configuré, la tâche Activer ou désactiver des fonctionnalités Windows est accessible à tous les utilisateurs.

Ce paramètre n'empêche pas les utilisateurs d'utiliser d'autres outils et méthodes pour configurer des services, ou pour activer ou désactiver des composants de programmes.

Registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Programs
Value name
NoWindowsFeatures
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: Programs/NoWindowsFeatures
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Programs'
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 'NoWindowsFeatures' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: Programs/NoWindowsFeatures
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Programs'
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 'NoWindowsFeatures' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Programs/NoWindowsFeatures
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Programs'
Remove-ItemProperty -Path $k -Name 'NoWindowsFeatures' -ErrorAction SilentlyContinue

Availability