Forum Discussion
SjoerdVW
Nov 07, 2019Copper Contributor
Desktop Background Image by script
We have an startup script running picks a random image from a pool and places it in %programfiles%\mycompany\dekstop.jpg During logon we change the users desktop, poiting to this image. Howev...
vihargadhesariya
Jun 08, 2025Iron Contributor
Run the image‐set in a User Logon script, not a Computer Startup script
Set HKCU\Control Panel\Desktop\Wallpaper to "%ProgramFiles%\mycompany\desktop.jpg"
Call:
RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters 1,True
If Logon scripts still fire too early, place the above call in
HKCU\Software\Microsoft\Windows\CurrentVersion\Run
Or deploy via GPO:
User Configuration → Administrative Templates → Desktop → Desktop Wallpaper