📜 VBScript (WSH)
Disable Windows Spotlight on Desktop (VBScript)
Turns off the Windows Spotlight rotating desktop background feature. Applies the tweak via WScript.Shell.RegWrite.
SetDisableWindowsSpotlight.vbs
' ============================================================
' SetDisableWindowsSpotlight.vbs
'
' Disable Windows Spotlight on Desktop.
' Turns off the Windows Spotlight rotating desktop background feature.
'
' Usage: cscript SetDisableWindowsSpotlight.vbs
' ============================================================
Option Explicit
Dim objShell
Set objShell = CreateObject("WScript.Shell")
On Error Resume Next
objShell.RegWrite "HKCU\Software\Policies\Microsoft\Windows\CloudContent\DisableSpotlightCollectionOnDesktop", 1, "REG_DWORD"
If Err.Number = 0 Then
WScript.Echo "Disable Windows Spotlight on Desktop applied."
Else
WScript.Echo "Failed to apply tweak (Error " & Err.Number & ": " & Err.Description & ")"
End If
On Error Goto 0