fil_b Posted October 29, 2009 Posted October 29, 2009 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
matt40k Posted October 29, 2009 Posted October 29, 2009 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.
fil_b Posted October 29, 2009 Author Posted October 29, 2009 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.
FN-GM Posted October 29, 2009 Posted October 29, 2009 If you was using Server 2008 R2 its built into Windows You might want to try this - http://www.microsoft.com/downloads/details.aspx?FamilyID=ce1d596b-6851-4948-ab76-b5ff22d37d69&displaylang=en Also i think the wallpaper is disabled by defult for TS Sessions. You might need to enable it in group policy.
matt40k Posted October 29, 2009 Posted October 29, 2009 (edited) 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.randomwallpaper.zip Edited October 29, 2009 by matt40k
fil_b Posted October 30, 2009 Author Posted October 30, 2009 If you was using Server 2008 R2 its built into Windows You might want to try this - http://www.microsoft.com/downloads/details.aspx?FamilyID=ce1d596b-6851-4948-ab76-b5ff22d37d69&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
FN-GM Posted October 30, 2009 Posted October 30, 2009 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
fil_b Posted October 30, 2009 Author Posted October 30, 2009 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
fil_b Posted October 30, 2009 Author Posted October 30, 2009 (edited) 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 Edited October 30, 2009 by fil_b
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now