Make Family Safety control panel visible on a Domain
Rendre le Panneau de configuration Contrôle parental visible sur un domaine
Explanation
This policy setting allows you to configure the Family Safety feature.
If you enable this policy setting, the Family Safety control panel is visible on a domain joined computer.
If you disable or do not configure this policy setting, the Family Safety control panel is not visible on a domain joined computer.
Ce paramètre de stratégie vous permet de configurer la fonctionnalité Contrôle parental.
Si vous activez ce paramètre de stratégie, le Panneau de configuration Contrôle parental est visible sur un ordinateur appartenant à un domaine.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le Panneau de configuration Contrôle parental n’est pas visible sur un ordinateur membre d’un domaine.
Registry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\ParentalControls- Value name
WPCEnableOnDomain
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
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: parentalcontrols/ParentalControls_EnableOnDomain_State_2
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\ParentalControls'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'WPCEnableOnDomain' -Value 1 -Type DWordDisable
# Disable: parentalcontrols/ParentalControls_EnableOnDomain_State_2
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\ParentalControls'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'WPCEnableOnDomain' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": parentalcontrols/ParentalControls_EnableOnDomain_State_2
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\ParentalControls'
Remove-ItemProperty -Path $k -Name 'WPCEnableOnDomain' -ErrorAction SilentlyContinue