Kaseya Community

Change wallpaper once

  • Hi! I would like to be able to run a procedure that changes the wallpaper for the user to one that my Kaseyaserver provides. It would be nice if the procedure could check the screen resolution and based on that set a specific wallpaper. Is this possible, and could anyone better then me help me trough the process of creat this procedure?


  • reg add "hkcu\control panel\desktop" /v wallpaper /t REG_SZ /d "C:\path\to\some\image.jpg" /f 
    RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters

    To get the screen resolution, you can use WMI:


    wmic path win32_desktopmonitor get screenheight /value
    wmic path win32_desktopmonitor get screenwidth /value

    You'll have to parse that wmic output, and deal with a multi-monitor situation.  You can make the screenheight anf screenwidth into variable where you can quickly use the correct wallpaper image.