Jump to content

Recommended Posts

Posted

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

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

Posted (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 by matt40k
Posted
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

Posted
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
Posted

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

Posted (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 by fil_b

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...