Open in the explorer

Restrict unpacking and installation of gadgets that are not digitally signed.

Restreindre la décompression et l’installation des gadgets qui ne sont pas signés numériquement

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Desktop Gadgets FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Gadgets du Bureau
Supported on
Windows Server 2008, Windows 7, and Windows Vista FR: Windows Server 2008, Windows 7 et Windows Vista
ADMX file
Sidebar.admx
Internal name
Sidebar/TurnOffUnsignedGagdets_2

Explanation

This policy setting allows you to restrict the installation of unsigned gadgets. Desktop gadgets can be deployed as compressed files, either digitally signed or unsigned.
If you enable this setting, gadgets that have not been digitally signed will not be extracted.

If you disable or do not configure this setting, both signed and unsigned gadgets will be extracted.
The default is for Windows to extract both signed and unsigned gadgets.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet d’éviter l’installation des gadgets non signés. Les gadgets du Bureau peuvent être déployés comme fichiers compressés, qu’ils soient signés ou non.
Si vous activez ce paramètre, seuls les gadgets du Bureau signés numériquement pourront être extraits.

Si vous désactivez ce paramètre ou que vous ne le configurez pas, même les gadgets non signés seront extraits.
Par défaut, Windows peut extraire aussi bien les gadgets signés que les gadgets non signés.

Registry

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Windows\Sidebar
Value name
TurnOffUnsignedGadgets
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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/TurnOffUnsignedGagdets_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 'TurnOffUnsignedGadgets' -Value 1 -Type DWord

Disable

# Disable: Sidebar/TurnOffUnsignedGagdets_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 'TurnOffUnsignedGadgets' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Sidebar/TurnOffUnsignedGagdets_2
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Windows\Sidebar'
Remove-ItemProperty -Path $k -Name 'TurnOffUnsignedGadgets' -ErrorAction SilentlyContinue

Availability