Turn on desktop background slideshow (plugged in)
Activer le diaporama de l’arrière-plan du Bureau (sur secteur)
Explanation
This policy setting allows you to specify if Windows should enable the desktop background slideshow.
If you enable this policy setting, desktop background slideshow is enabled.
If you disable this policy setting, the desktop background slideshow is disabled.
If you disable or do not configure this policy setting, users control this setting.
Ce paramètre de stratégie vous permet de spécifier si Windows doit activer le diaporama de l’arrière-plan du Bureau.
Si vous activez ce paramètre de stratégie, le diaporama de l’arrière-plan du Bureau est également activé.
Si vous désactivez ce paramètre, le diaporama de l’arrière-plan du Bureau est désactivé.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs contrôlent ce paramètre.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\309dce9b-bef4-4119-9921-a851fb12f0f4- Value name
ACSettingIndex
| 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: Power/EnableDesktopSlideShowAC
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\309dce9b-bef4-4119-9921-a851fb12f0f4'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ACSettingIndex' -Value 1 -Type DWordDisable
# Disable: Power/EnableDesktopSlideShowAC
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\309dce9b-bef4-4119-9921-a851fb12f0f4'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ACSettingIndex' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Power/EnableDesktopSlideShowAC
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\309dce9b-bef4-4119-9921-a851fb12f0f4'
Remove-ItemProperty -Path $k -Name 'ACSettingIndex' -ErrorAction SilentlyContinue