+ Post New Thread
Results 1 to 9 of 9
Windows Server 2000/2003 Thread, Terminal Server Sessions wallpapers in Technical; hi all we have got a full desktop working on terminal services and we have redirected start menu and back ...
  1. #1

    Join Date
    Jul 2009
    Location
    Wolverhampton
    Posts
    116
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Terminal Server Sessions wallpapers

    hi all

    we have got a full desktop working on terminal services and we have redirected start menu and back grounds for user groups

    but we would like to have a Pool of wallpapers images that is random on each logon for all users using the Thin clients

    any one got any ideas of a script or something to help do this??

    many thanks

    Phil

  2. #2

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,377
    Thank Post
    368
    Thanked 637 Times in 519 Posts
    Rep Power
    158
    Possible. Two ideas I had was to either use a HTML page or a have a program that changes the regkey to a (random) new image.

  3. #3

    Join Date
    Jul 2009
    Location
    Wolverhampton
    Posts
    116
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by matt40k View Post
    Possible. Two ideas I had was to either use a HTML page or a have a program that changes the regkey to a (random) new image.
    any ideas how to do this??

    currently we are setting the background under the profile area with the background file called desktop.

  4. #4

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,821
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    If you was using Server 2008 R2 its built into Windows

    You might want to try this - http://www.microsoft.com/downloads/d...displaylang=en

    Also i think the wallpaper is disabled by defult for TS Sessions. You might need to enable it in group policy.

  5. #5

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,377
    Thank Post
    368
    Thanked 637 Times in 519 Posts
    Rep Power
    158
    Try the attached.

    Save it to the local disc, then set it to run as a group policy when the user logins in, you'll need to set the path to the folder of pictures, they will need to be JPG. Hopefully that'll do it.

    Scratch that... Listen to FN-GM.
    Attached Files Attached Files
    Last edited by matt40k; 29th October 2009 at 03:42 PM.

  6. #6

    Join Date
    Jul 2009
    Location
    Wolverhampton
    Posts
    116
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by FN-GM View Post
    If you was using Server 2008 R2 its built into Windows

    You might want to try this - http://www.microsoft.com/downloads/d...displaylang=en

    Also i think the wallpaper is disabled by defult for TS Sessions. You might need to enable it in group policy.
    hey fn-gm

    we have set up desktop images for ts server sessions.

    is there anything to put into a logon script so when we set the drivers a user has, we can set a picture from a folder of pictures

  7. #7

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,821
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    I am not sure, i have never used it. I presume you set something in the profile. Personally i wouldn't waste system resources on wallpapers etc

  8. #8

    Join Date
    Jul 2009
    Location
    Wolverhampton
    Posts
    116
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Been searching

    setting the background via kickstart.kix script

    WRITEVALUE("HKEY_CURRENT_USER\Control Panel\Desktop", "Wallpaper","somepicture.bmp","REG_SZ")

    how would i get it to look into a folder to select a random picture out of it???

    tar

  9. #9

    Join Date
    Jul 2009
    Location
    Wolverhampton
    Posts
    116
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    found this on another site

    Here is a simple VBScript to set the image (and a thing to remember, the majority of configuration settings occur in the Windows Registry, but don't randomly start fiddling with it, otherwise you could damage it).

    CODE
    Dim shell : Set shell = CreateObject("WScript.Shell")
    Dim wallpaper : wallpaper = "\\Network\Path\To\Image"

    shell.RegWrite "HKCU\Control Panel\Desktop\Wallpaper", wallpaper

    shell.Run "%SYSTEMROOT%\System32\rundll32.exe user32.dll,UpdatePerUserSystemParameters", 1, True


    The last line is important, because it causes the system to update user parameters, things like the desktop background.

    You should be able to run that at startup.


    ALSO got this

    dim wshShell
    dim sUserName
    Set wshShell = WScript.CreateObject("WScript.Shell")
    sUserName = wshShell.ExpandEnvironmentStrings("%USERNAME%")
    Set oShell = CreateObject("WScript.Shell")
    Set oFSO = CreateObject("Scripting.FileSystemObject")
    sWinDir = oFSO.GetSpecialFolder(0)
    'sWallPaper = "D:\My Documents\DownLoad\" & sUserName & " - bkg.jpg"
    sWallPaper = "C:\WINNT\Sample.bmp"
    ' update in registry
    oShell.RegWrite "HKCU\Control Panel\Desktop\Wallpaper", sWallPaper
    ' let the system know about the change
    oShell.Run "%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", 1, True
    Last edited by fil_b; 30th October 2009 at 12:19 PM.

SHARE:
+ Post New Thread

Similar Threads

  1. MS Terminal Server Sessions
    By Jonny_sims in forum Thin Client and Virtual Machines
    Replies: 6
    Last Post: 12th May 2010, 11:30 PM
  2. Terminal Server running on Server 2008
    By f21970 in forum Windows Server 2008
    Replies: 2
    Last Post: 29th May 2009, 01:56 PM
  3. How to I make all Terminal 08 Sessions go via the TS Gateway
    By darknova in forum Windows Server 2008
    Replies: 0
    Last Post: 13th March 2008, 09:27 AM
  4. Eliminating Printer "sessions" on W2k3 Terminal Server
    By Behuck in forum Thin Client and Virtual Machines
    Replies: 12
    Last Post: 17th January 2008, 04:18 PM
  5. Java problems in terminal sessions
    By nutso in forum Thin Client and Virtual Machines
    Replies: 0
    Last Post: 19th November 2007, 09:00 AM

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
  •