+ Post New Thread
Results 1 to 9 of 9
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 ...
  1. #1
    OutLawTorn's Avatar
    Join Date
    Jul 2007
    Location
    Sydney, Australia
    Posts
    216
    Thank Post
    8
    Thanked 8 Times in 8 Posts
    Rep Power
    32

    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

  2. #2

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,205
    Thank Post
    876
    Thanked 2,729 Times in 2,308 Posts
    Blog Entries
    11
    Rep Power
    782
    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:.

  3. #3
    p858snake's Avatar
    Join Date
    Dec 2008
    Location
    Queensland
    Posts
    1,490
    Thank Post
    37
    Thanked 175 Times in 151 Posts
    Blog Entries
    2
    Rep Power
    51
    BGInfo as a login script could possibly do this (But don't quote me on this)

  4. #4

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,817
    Thank Post
    272
    Thanked 1,138 Times in 1,034 Posts
    Rep Power
    350
    Create an HTML file and store it on a server share - in the html use some javascript which randomly selects an image

  5. #5
    ricki's Avatar
    Join Date
    Jul 2005
    Location
    uk
    Posts
    1,475
    Thank Post
    20
    Thanked 164 Times in 157 Posts
    Rep Power
    52
    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.

    Richard

  6. #6
    ricki's Avatar
    Join Date
    Jul 2005
    Location
    uk
    Posts
    1,475
    Thank Post
    20
    Thanked 164 Times in 157 Posts
    Rep Power
    52

  7. #7
    gshaw's Avatar
    Join Date
    Sep 2007
    Location
    Essex
    Posts
    2,671
    Thank Post
    168
    Thanked 221 Times in 204 Posts
    Rep Power
    67
    Quote Originally Posted by ricki View Post
    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.

    Richard
    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.

    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

  8. #8
    OutLawTorn's Avatar
    Join Date
    Jul 2007
    Location
    Sydney, Australia
    Posts
    216
    Thank Post
    8
    Thanked 8 Times in 8 Posts
    Rep Power
    32
    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

    Code:
    Dim myRandom, maxNumber
    Set WShell = CreateObject("WScript.Shell")
    Randomize
    MaxNumber = 5
    MinNumber = 1
    myRandom = Int((Rnd*(MaxNumber))+MinNumber)
    Select Case myRandom
                    Case 1:
                                    myWallpaperConfig = "1.bgi"
                    Case 2:
                                    myWallpaperConfig = "2.bgi"
                    Case 3:
                                    myWallpaperConfig = "3.bgi"
                    Case 4:
                                    myWallpaperConfig = "4.bgi"
                    Case 5:
                                    myWallpaperConfig = "5.bgi"
    End Select
    ' Run BGInfo with the selected bgi
    WShell.Run("Bginfo.exe "&myWallpaperConfig&" /nolicprompt /silent /timer:0")

  9. #9


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,157
    Thank Post
    234
    Thanked 2,742 Times in 2,021 Posts
    Rep Power
    801
    Quote Originally Posted by LokowtherKamiiu View Post
    You could create a script that will create a random number say 1 to 5
    Like the script in the post above yours?

SHARE:
+ Post New Thread

Similar Threads

  1. Icon Transparency using Active Directory and Active Desktop Backgrounds
    By steveo2000 in forum Windows Server 2000/2003
    Replies: 2
    Last Post: 19th May 2010, 09:50 AM
  2. Desktop background gpo
    By itgeek in forum Windows
    Replies: 5
    Last Post: 4th February 2010, 08:58 AM
  3. Placing the My Documents on Desktop via GPO or Script
    By ninjabeaver in forum Windows Server 2000/2003
    Replies: 3
    Last Post: 29th August 2009, 12:14 AM
  4. Replies: 9
    Last Post: 3rd December 2008, 01:37 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •