PDA

View Full Version : Script 4 Windows 2000 server to set XP wallpaper



Waynz
25-07-2006, 12:41 PM
What i need is a script to set the wallpaper on the client XP Pro michines with in the Profiles on a windows 2000 server.

I have had a good look on the net, but no real luck.

Found one (below) but can not get it to work.

Any help would b great.
:thumbs:


Set objShell=CreateObject("Wscript.Shell")
KeyName = "HKEY_USERS\.DEFAULT\Control Panel\"
objShell.RegWrite KeyName & "Desktop Wallpaper", "\\server\share\image.jpg"

Cheers Wayne

SolMiester
25-07-2006, 02:23 PM
Use a Group Policy to enforce the wallpaper!

http://i13.photobucket.com/albums/a299/Solmiester/gp.jpg

Waynz
26-07-2006, 10:36 AM
Thanks SolMiester

Is it me or are u talking about the Screen Saver not the wallpaper?

And what i forgot the mention was that i what to force the wallpaper only for one user or group. Sorry about that.

Cheers Wayne
:help:

berryb
26-07-2006, 11:52 AM
Option for Wallpaper is under Active desktop

SolMiester
26-07-2006, 01:13 PM
Thanks SolMiester

Is it me or are u talking about the Screen Saver not the wallpaper?

And what i forgot the mention was that i what to force the wallpaper only for one user or group. Sorry about that.

Cheers Wayne
:help:


LOL, yeah, got that one wrong, however same as, just find right one and associate to Workstation OU in AD

Waynz
27-07-2006, 10:26 AM
Thanks SolMiester

Got it 2 work - But the wallpaper doesn't seem to update till you logoff and logon. but if i have 2 i can live with that.

The jpg file sometimes have trouble displaying (might b the size?) this mostly fix after logoff and logging back on.

Cheers wayne
:badpc:

Waynz
27-07-2006, 10:53 AM
Just a follow up,

The wallpapers set 2 the right one, but can not b changed by the user, (good anyway). On loading the new wallpaper is displayed but after everything is loaded the wallpaper goes blank, if i looking in display properties the wallpaper is set 2 the right one, but can not b chaged, In Group Policy's if i set "Block Policy Inheritance" the wallpaper displays 1/4 right hand side and blank the rest.

Is it the size of the jpg?
Postion is "stretch"
Is it something to do with the display properties being locked?
I have only chaged the Active Desktop Wallpaper.

Any help is great

Cheers Wayne
:thumbs:

Waynz
27-07-2006, 01:24 PM
Sorry People,

My mistake - 4 some reason in Display Properties - Desktop - Customize Desktop - Web (tab) My Current Home Page was ticked, Unticked this and all is well now.

Thanks Everyone 4 their help

Cheers Wayne
:D

SolMiester
27-07-2006, 01:29 PM
Waynz, you will have to play around with the policies....I dont use display restrictions. Yes to does prevent user intervention, but thats what its supposed to do.

You can command all workstations from GPO

Window 2000 needs to log on, log off for GPO to authenciate, however windows 2003 server will dymanic update policy on the fly, every 15min I think.

Waynz
31-07-2006, 01:34 PM
Hi People

I Have mandatory profile (man)
Have got the wallpaper to update (if change it it only changes after a reboot)
I can live with this. BUT now

however when i enforce the wallpaper it makes the icons have a background color instead of the standard transparent XP icon text. Is there a way to make the icons transparent?

Cheers Wayne
:eek:

bornfree
14-03-2007, 03:59 PM
What i need is a script to set the wallpaper on the client XP Pro michines with in the Profiles on a windows 2000 server.

I have had a good look on the net, but no real luck.

Found one (below) but can not get it to work.

Any help would b great.
:thumbs:


Set objShell=CreateObject("Wscript.Shell")
KeyName = "HKEY_USERS\.DEFAULT\Control Panel\"
objShell.RegWrite KeyName & "Desktop Wallpaper", "\\server\share\image.jpg"

Cheers Wayne


i got a question.. where do i place this

Set objShell=CreateObject("Wscript.Shell")
KeyName = "HKEY_USERS\.DEFAULT\Control Panel\"
objShell.RegWrite KeyName & "Desktop Wallpaper", "\\server\share\image.jpg"

in a text file and save as a .bat? will this work?

Noob