how to Change background wallpaper automatically


  1. Posts : 3
    Windows 7 64-bit
       #1

    how to Change background wallpaper automatically


    Hi all,

    I maintain a small group of computers in a windows environment. Currently, I have a group policy applying a default wallpaper to each pc, but I have to go around changing this wallpaper for each computer that has a different sized monitor. (the group policy applies a certain named jpg as the background so if i want a different size for a different aspect ratio monitor, i name the differently sized background jpg to the default name). I am curious as if there is anyway to auto size based off resolution? the windows 7 login screen seems to do a good job but I can't seem to find anything despite looking all of the web. I've looked into scripting but haven't had any luck.

    any help would be greatly appreciated!

    thanks
      My Computer


  2. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #2

    May not be what you want exactly but:

    Can't you group similar display computers and apply different policies to them with correctly sized background images?
      My Computer


  3. Posts : 3
    Windows 7 64-bit
    Thread Starter
       #3

    GokAy said:
    May not be what you want exactly but:

    Can't you group similar display computers and apply different policies to them with correctly sized background images?

    thanks for the suggestion! I was hoping for something a bit more streamline since the computers are already in their respective model OU's.
      My Computer


  4. Posts : 3
    Windows 7 64-bit
    Thread Starter
       #4

    I was able to write a script based off the some deeper google searches. Basically it grabs the screenheight and width from wmic and sets the picture accordingly. I'll put the script below:

    @ECHO OFF
    set "screenheight="
    set "screenwidth="

    ::COLLECT SCREENHEIGHT
    for /F "tokens=2 delims==" %%F in ('wmic desktopmonitor get screenheight /value') do (
    if not defined screenheight set screenheight=%%F
    )

    ::COLLECT SCREENWIDTH
    for /F "tokens=2 delims==" %%F in ('wmic desktopmonitor get screenwidth /value') do (

    if not defined screenwidth set screenwidth=%%F
    )

    IF NOT %screenheight%=="" (

    copy C:\Windows\Web\Wallpaper\2015-%screenwidth%x%screenheight%.jpg C:\Windows\Web\
    rename C:\Windows\Web\Wallpaper\2015-%screenwidth%x%screenheight%.jpg defaultBackground.jpg
    move C:\Windows\Web\2015-%screenwidth%x%screenheight%.jpg C:\Windows\Web\Wallpaper\


    )
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:52.
Find Us