Turn off desktop gadgets
Désactiver les gadgets du Bureau
Explanation
This policy setting allows you to turn off desktop gadgets. Gadgets are small applets that display information or utilities on the desktop.
If you enable this setting, desktop gadgets will be turned off.
If you disable or do not configure this setting, desktop gadgets will be turned on.
The default is for desktop gadgets to be turned on.
Ce paramètre de stratégie permet de désactiver les gadgets du Bureau. Il s’agit d’applets destinées à afficher des informations ou des utilitaires sur le Bureau.
Si vous activez ce paramètre, les gadgets du Bureau seront automatiquement désactivés.
Si vous désactivez ou ne configurez pas ce paramètre, les gadgets du Bureau seront activés.
Par défaut, les gadgets du Bureau sont activés.
Registry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Windows\Sidebar- Value name
TurnOffSidebar
| 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/TurnOffSidebar_2
$k = 'HKLM:\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 'TurnOffSidebar' -Value 1 -Type DWordDisable
# Disable: Sidebar/TurnOffSidebar_2
$k = 'HKLM:\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 'TurnOffSidebar' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Sidebar/TurnOffSidebar_2
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Windows\Sidebar'
Remove-ItemProperty -Path $k -Name 'TurnOffSidebar' -ErrorAction SilentlyContinue