If the required background is mainly horizontal, use this guide to create four different versions of background image
Alternatively, if the image is mainly vertical, start with a 10 924px x 6144px image and crop to create four different versions of background image
Step 2 - User Environmental Variables
After creating the four different versions of the background, we need a way to control which version of background is pushed to the computers.
Create four user environmental variable objects using GPO User Environmental Preferences
Here is the values required to create the four entries
16:9 - PrimaryScreenAspectRatio = 1.778
Select * from Win32_DesktopMonitor where ScreenWidth='1280' and ScreenHeight='720'
Select * from Win32_DesktopMonitor where ScreenWidth='1600' and ScreenHeight='900'
Select * from Win32_DesktopMonitor where ScreenWidth='1920' and ScreenHeight='1080'
Select * from Win32_DesktopMonitor where ScreenWidth='2560' and ScreenHeight='1440'
Select * from Win32_DesktopMonitor where ScreenWidth='3840' and ScreenHeight='2160'
Select * from Win32_DesktopMonitor where ScreenWidth='7680' and ScreenHeight='4320'
16:10 PrimaryScreenAspectRatio = 1.6
Select * from Win32_DesktopMonitor where ScreenWidth='1280' and ScreenHeight='800'
Select * from Win32_DesktopMonitor where ScreenWidth='1440' and ScreenHeight='900'
Select * from Win32_DesktopMonitor where ScreenWidth='1680' and ScreenHeight='1050'
Select * from Win32_DesktopMonitor where ScreenWidth='1920' and ScreenHeight='1200'
Select * from Win32_DesktopMonitor where ScreenWidth='2560' and ScreenHeight='1600'
4:3 PrimaryScreenAspectRatio = 1.333
Select * from Win32_DesktopMonitor where ScreenWidth='320' and ScreenHeight='200'
Select * from Win32_DesktopMonitor where ScreenWidth='640' and ScreenHeight='480'
Select * from Win32_DesktopMonitor where ScreenWidth='800' and ScreenHeight='600'
Select * from Win32_DesktopMonitor where ScreenWidth='1024' and ScreenHeight='768'
Select * from Win32_DesktopMonitor where ScreenWidth='1152' and ScreenHeight='864'
Select * from Win32_DesktopMonitor where ScreenWidth='1600' and ScreenHeight='1200'
5:4 PrimaryScreenAspectRatio = 1.25
Select * from Win32_DesktopMonitor where ScreenWidth='1280' and ScreenHeight='1024
A C# application can be deployed as an addition to the GPO User Environmental Variables Preference Items as a GPO User File Preference. This is useful on RDP sessions and Hyper-V consoles where the WMI objects are not populated properly.
Step 3 - Background File Deployment
Create four file objects using GPO User Files Preferences
Based on the User Environmental Variable set in the previous step, an appropriately ratioed background file will be pushed to computers
Here is the values required to create the four entries
the environment variable %PrimaryScreenAspectRatio% is 1.25
The target file for all of these entries is %AppDataDir%\Branding\Background\Background.png
Step 4 - Applying Background
Now for the easy bit, just configure the background %AppData%\Branding\Background\Background.png.
Because the background is dynamically assigned, it will always have the same path on the computers
Please do not forget to press the "Thumb's Up" button if this article was helpful and valuable for EE members.
It also provides me with positive feedback. Thank you!
Shaun, you have always shown your skill set since i have known you back in 2008 SAPS environment, You have changed the perception of how one do research.
Good Stuff on this article it deserved an award....!!!
Thanks Very Much
Have a question about something in this article?
You can receive help directly from the article author.
Sign up for a free trial to get started.
Comments (3)
Commented:
Great stuff Shaun.
Thanks a lot.
Commented:
Commented:
Good Stuff on this article it deserved an award....!!!
Thanks Very Much