Go directly to Components Wizard
Aller directement à l’Assistant Composants
Explanation
Prevents users from using Add or Remove Programs to configure installed services.
This setting removes the "Set up services" section of the Add/Remove Windows Components page. The "Set up services" section lists system services that have not been configured and offers users easy access to the configuration tools.
If you disable this setting or do not configure it, "Set up services" appears only when there are unconfigured system services. If you enable this setting, "Set up services" never appears.
This setting does not prevent users from using other methods to configure services.
Note: When "Set up services" does not appear, clicking the Add/Remove Windows Components button starts the Windows Component Wizard immediately. Because the only remaining option on the Add/Remove Windows Components page starts the wizard, that option is selected automatically, and the page is bypassed.
To remove "Set up services" and prevent the Windows Component Wizard from starting, enable the "Hide Add/Remove Windows Components page" setting. If the "Hide Add/Remove Windows Components page" setting is enabled, this setting is ignored.
Empêche les utilisateurs d’employer Ajouter ou supprimer des programmes pour configurer des services installés.
Ce paramètre supprime la section « Installer les services » de la page Ajouter ou supprimer des composants Windows. La section « Installer les services » affiche une liste des services système qui n’ont pas été configurés et offre aux utilisateurs un accès facile aux outils de configuration.
Si vous désactivez ce paramètre ou ne le configurez pas, « Installer les services » apparaît uniquement lorsqu’il y a des services système non configurés. Si vous activez ce paramètre, « Installer les services » n’apparaît jamais.
Ce paramètre n’empêche pas les utilisateurs d’employer d’autres outils ou méthodes pour configurer des services.
Remarque : lorsque « Installer les services » n’apparaît pas, l’utilisateur peut démarrer immédiatement l’Assistant Composants Windows en cliquant sur le bouton Ajouter ou supprimer des composants Windows. Puisque la seule option restante sur la page Ajouter ou supprimer des composants Windows démarre l’Assistant, cette option est sélectionnée automatiquement et la page est ignorée.
Pour supprimer « Installer les services » et empêcher le démarrage de l’Assistant Composants Windows, activez le paramètre « Masquer la page Ajouter ou supprimer des composants Windows ». Si le paramètre « Masquer la page Ajouter ou supprimer des composants Windows » est activé, ce paramètre est ignoré.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Uninstall- Value name
NoServices
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not 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: AddRemovePrograms/NoServices
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Uninstall'
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 'NoServices' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: AddRemovePrograms/NoServices
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Uninstall'
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 'NoServices' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": AddRemovePrograms/NoServices
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Uninstall'
Remove-ItemProperty -Path $k -Name 'NoServices' -ErrorAction SilentlyContinue