Show only specified Control Panel items
N’afficher que les éléments du Panneau de configuration spécifiés
Explanation
This policy setting controls which Control Panel items such as Mouse, System, or Personalization, are displayed on the Control Panel window and the Start screen. The only items displayed in Control Panel are those you specify in this setting. This setting affects the Start screen and Control Panel, 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.
To display a Control Panel item, enable this policy setting and click Show to access the list of allowed 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, for example timedate.cpl or inetcpl.cpl, should be entered. 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, enter @systemcpl.dll,-1 for System or @themecpl.dll,-1 for Personalization. A complete list of canonical and module names of Control Panel items 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 de stratégie détermine quels éléments du Panneau de configuration, tels que Souris, Système ou Personnalisation, apparaissent dans la fenêtre du Panneau de configuration et l’écran de démarrage. Les seuls éléments affichés dans le Panneau de configuration sont ceux spécifiés dans ce paramètre. Ce paramètre affecte l’écran de démarrage et le Panneau de configuration, ainsi que les autres moyens d’accéder aux éléments du Panneau de configuration, tels que les raccourcis disponibles dans Aide et support ou les lignes de commande qui utilisent le fichier control.exe. Cette stratégie est sans effet sur les éléments apparaissant dans Paramètres du PC.
Pour afficher 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 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. Entrez par exemple @systemcpl.dll,-1 pour Système ou @themecpl.dll,-1 pour Personnalisation. Vous trouverez dans MSDN une liste complète des noms canoniques et des noms de modules des éléments du Panneau de configuration 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
RestrictCpl
| 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/RestrictCpls
$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 'RestrictCpl' -Value 1 -Type DWord # assumed value (not defined in the ADMX)
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictCpl'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# List of allowed 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/RestrictCpls
$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 'RestrictCpl' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": ControlPanel/RestrictCpls
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'RestrictCpl' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictCpl'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| List of allowed Control Panel itemsListe des éléments du Panneau de configuration autorisésRestrictCplsList | List (table)list | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictCplValues named “” + number | REG_SZ (values under the key) |