Solved how to Change background wallpaper automatically

cjworsnop

New member
Local time
3:41 AM
Messages
3
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

Computer type
PC/Desktop
OS
Windows 7 64-bit
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
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

Computer type
PC/Desktop
OS
Windows 7 64-bit
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

Computer type
PC/Desktop
OS
Windows 7 64-bit
Back
Top