⚡ PowerShell 5.1+

Disable Windows Spotlight on Desktop

Turns off the Windows Spotlight rotating desktop background feature.

By WindowsScripting.com · 762 B
Set-DisableWindowsSpotlight.ps1
<#
.SYNOPSIS
    Disable Windows Spotlight on Desktop.

.DESCRIPTION
    Turns off the Windows Spotlight rotating desktop background feature.

    Sets HKCU:\Software\Policies\Microsoft\Windows\CloudContent \ DisableSpotlightCollectionOnDesktop to 1.

.EXAMPLE
    .\Set-DisableWindowsSpotlight.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKCU:\Software\Policies\Microsoft\Windows\CloudContent'

if (-not (Test-Path $regPath)) {
    New-Item -Path $regPath -Force | Out-Null
}

New-ItemProperty -Path $regPath -Name 'DisableSpotlightCollectionOnDesktop' -Value 1 -PropertyType DWord -Force | Out-Null

Write-Host "Disable Windows Spotlight on Desktop applied. Sign out and back in (or restart explorer.exe) for it to fully take effect." -ForegroundColor Green