Turn Off user-installed desktop gadgets
Désactiver les gadgets du Bureau installés par l’utilisateur
Explanation
This policy setting allows you to turn off desktop gadgets that have been installed by the user.
If you enable this setting, Windows will not run any user-installed gadgets.
If you disable or do not configure this setting, Windows will run user-installed gadgets.
The default is for Windows to run user installed gadgets.
Ce paramètre de stratégie vous permet de désactiver les gadgets du Bureau installés par l’utilisateur.
Si ce paramètre est activé, Windows n’exécute aucun gadget installé par l’utilisateur.
Si ce paramètre est désactivé ou n’est pas configuré, Windows exécute les gadgets installés par l’utilisateur.
Par défaut, Windows exécute les gadgets installés par l’utilisateur.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Windows\Sidebar- Value name
TurnOffUserInstalledGadgets
| 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: Sidebar/TurnOffUserInstalledGagdets_1
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Windows\Sidebar'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'TurnOffUserInstalledGadgets' -Value 1 -Type DWordDisable
# Disable: Sidebar/TurnOffUserInstalledGagdets_1
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Windows\Sidebar'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'TurnOffUserInstalledGadgets' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Sidebar/TurnOffUserInstalledGagdets_1
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Windows\Sidebar'
Remove-ItemProperty -Path $k -Name 'TurnOffUserInstalledGadgets' -ErrorAction SilentlyContinue