Windows Thread, Multiple Desktop Backgrounds GPO in Technical; Staff have just asked us to have ~5 different wallpapers for students each with a different message on it... Currently ...
7th September 2011, 03:40 AM #1
Multiple Desktop Backgrounds GPO
Staff have just asked us to have ~5 different wallpapers for students each with a different message on it... Currently the wallpaper is pushed out via group policy.
Is there any way of creating a policy that will randomly load one of the five wallpapers for each user that logs in? Or does anyone know of any other ways of achieving the same result?
They are happy to have one wallpaper for a fortnight and then change it in the policy manually, but it would be nice to make it a bit flashier for them
7th September 2011, 04:54 AM #2
A two part solution, a machine startup script that copies all five wallpapers to the c:\walpapers folder.
A scheduled task on the machines that triggers at logoff and runs the a script that randomly copies one of the five wallpapers from the c:\wallpapers to a set location c:\walpaper.bmp on the machine this way it gets around any local permissions issues.
Then point the GPO to the location on the machine (c:\walpaper.bmp) at the end of each week you could change the avalible wallpapers on the network share and have the machine startup script to copy them out to the clients c:.
7th September 2011, 12:39 PM #3
BGInfo as a login script could possibly do this (But don't quote me on this)
7th September 2011, 01:02 PM #4
7th September 2011, 01:03 PM #5
You could create a script that will create a random number say 1 to 5 and they depending on what number it picks it runs a different bginfo script.
7th September 2011, 01:16 PM #6
7th September 2011, 01:42 PM #7
I'd go with that route, means you can also have a custom message with the wallpaper that you can edit easily as you go along.
Originally Posted by ricki
The other thing I do with BGInfo is to use a VBScript to call the right file based on the machine's screen resolution... means no nasty stretched backgrounds
28th October 2011, 06:04 AM #8
Got it working using the following VBS script, which generates a random number between 1 and 5, and assigns a different BGInfo profile accordingly. Posting for reference
Dim myRandom, maxNumber
Set WShell = CreateObject("WScript.Shell")
MaxNumber = 5
MinNumber = 1
myRandom = Int((Rnd*(MaxNumber))+MinNumber)
Select Case myRandom
myWallpaperConfig = "1.bgi"
myWallpaperConfig = "2.bgi"
myWallpaperConfig = "3.bgi"
myWallpaperConfig = "4.bgi"
myWallpaperConfig = "5.bgi"
' Run BGInfo with the selected bgi
WShell.Run("Bginfo.exe "&myWallpaperConfig&" /nolicprompt /silent /timer:0")
28th October 2011, 08:06 AM #9
Like the script in the post above yours?
Originally Posted by LokowtherKamiiu
By steveo2000 in forum Windows Server 2000/2003
Last Post: 19th May 2010, 09:50 AM
By itgeek in forum Windows
Last Post: 4th February 2010, 08:58 AM
By ninjabeaver in forum Windows Server 2000/2003
Last Post: 29th August 2009, 12:14 AM
By _Bat_ in forum Wireless Networks
Last Post: 3rd December 2008, 01:37 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)