Hide specified Control Panel items
Masquer les éléments du Panneau de configuration spécifiés
Explanation
This setting allows you to display or hide specified Control Panel items, such as Mouse, System, or Personalization, from the Control Panel window and the Start screen. The setting affects the Start screen and Control Panel window, as well as other ways to access Control Panel items, such as shortcuts in Help and Support or command lines that use control.exe. This policy has no effect on items displayed in PC settings.
If you enable this setting, you can select specific items not to display on the Control Panel window and the Start screen.
To hide a Control Panel item, enable this policy setting and click Show to access the list of disallowed Control Panel items. In the Show Contents dialog box in the Value column, enter the Control Panel item's canonical name. For example, enter Microsoft.Mouse, Microsoft.System, or Microsoft.Personalization.
Note: For Windows Vista, Windows Server 2008, and earlier versions of Windows, the module name should be entered, for example timedate.cpl or inetcpl.cpl. If a Control Panel item does not have a CPL file, or the CPL file contains multiple applets, then its module name and string resource identification number should be entered, for example @systemcpl.dll,-1 for System, or @themecpl.dll,-1 for Personalization. A complete list of canonical and module names can be found in MSDN by searching "Control Panel items".
If both the "Hide specified Control Panel items" setting and the "Show only specified Control Panel items" setting are enabled, the "Show only specified Control Panel items" setting is ignored.
Note: The Display Control Panel item cannot be hidden in the Desktop context menu by using this setting. To hide the Display Control Panel item and prevent users from modifying the computer's display settings use the "Disable Display Control Panel" setting instead.
Note: To hide pages in the System Settings app, use the "Settings Page Visibility" setting under Computer Configuration.
Ce paramètre vous permet d’afficher ou de masquer des éléments spécifiés du Panneau de configuration, tels que Souris, Système ou Personnalisation, de la fenêtre du Panneau de configuration et de l’écran de démarrage. Le paramètre affecte l’écran de démarrage et la fenêtre du Panneau de configuration, ainsi que les autres modes d’accès aux éléments du Panneau de configuration, tels que les raccourcis disponibles dans Aide et support ou les lignes de commande qui utilisent control.exe. Cette stratégie n'a pas d'effet sur les éléments disposés dans les paramètres du PC.
Si vous activez ce paramètre, vous pouvez sélectionner les éléments ne devant pas figurer dans la fenêtre du Panneau de configuration et l’écran de démarrage.
Pour masquer un élément du Panneau de configuration, activez ce paramètre de stratégie et cliquez sur Afficher pour accéder à la liste des éléments non autorisés du Panneau de configuration. Dans la colonne Valeur de la boîte de dialogue Afficher le contenu, tapez le nom canonique de l’élément du Panneau de configuration. Par exemple, tapez Microsoft.Mouse, Microsoft.System ou Microsoft.Personalization.
Remarque: pour Windows Vista, Windows Server 2008 et les versions antérieures de Windows, vous devez entrer le nom du module, par exemple timedate.cpl ou inetcpl.cpl. Lorsqu’un élément du Panneau de configuration n’est associé à aucun fichier CPL ou que ce dernier contient plusieurs applets, vous devez entrer son nom de module et son numéro d’identification de ressource de chaîne comme suit: @systemcpl.dll,-1 pour Système ou @themecpl.dll,-1 pour Personnalisation. Vous trouverez une liste complète des noms canoniques et des noms de modules dans MSDN en recherchant « Éléments du Panneau de configuration».
Si les paramètres « Masquer les éléments du Panneau de configuration spécifiés » et « N’afficher que les éléments du Panneau de configuration spécifiés » sont activés, le second paramètre est ignoré.
Remarque : ce paramètre ne permet pas de masquer l’élément Panneau de configuration d’affichage dans le menu contextuel du Bureau. Pour masquer cet élément et empêcher les utilisateurs de modifier les paramètres d’affichage de l’ordinateur, utilisez le paramètre « Désactiver le Panneau de configuration d’affichage ».
Remarque : pour masquer les pages de l’application Paramètres système, utilisez le paramètre « Visibilité de la page des paramètres » sous Configuration ordinateur.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
DisallowCpl
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX (see the options below) |
| Disabled | not defined in the ADMX (see the options below) |
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: ControlPanel/DisallowCpls
$k = 'HKCU:\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 'DisallowCpl' -Value 1 -Type DWord # assumed value (not defined in the ADMX)
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# List of disallowed Control Panel items
# Non-additive list: existing values of the key are cleared first
if (Test-Path -Path $k) { (Get-Item -Path $k).Property | ForEach-Object { Remove-ItemProperty -Path $k -Name ([WildcardPattern]::Escape($_)) -ErrorAction SilentlyContinue } }
$values = @('<value1>', '<value2>') # Replace the values with your own
$i = 1
foreach ($v in $values) { Set-ItemProperty -Path $k -Name ('' + $i) -Value $v -Type String; $i++ }Disable
# Disable: ControlPanel/DisallowCpls
$k = 'HKCU:\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 'DisallowCpl' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": ControlPanel/DisallowCpls
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'DisallowCpl' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| List of disallowed Control Panel itemsListe des éléments du Panneau de configuration non autorisésDisallowCplsList | List (table)list | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCplValues named “” + number | REG_SZ (values under the key) |