If creating a policy package for SCCM: Compile to EXE, add the EXE you just created to SCCM as a package: Create Package > Environment > Program can run: Only when user is logged on > Run with user rights.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop
type: dword
value: NoChangingWallPaper
data: 1
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System
type: string
value: Wallpaper
data: C:\Windows\WelcomeScan.jpg
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System
type: string
value: WallpaperStyle
data: 0
Notes
CSP
reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP” /v “DesktopImageStatus” /t reg_dword /d 1 /f /reg:64
reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP” /v “DesktopImagePath” /t reg_sz /d “C:\Windows\Desktop.png” /f /reg:64
reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP” /v “DesktopImageUrl” /t reg_sz /d “C:\Windows\Desktop.png” /f /reg:64