Page 1 of 1 1
Topic Options
#17454 - 2002-02-14 09:52 AM How to control users Wallpaper ????
-=[Jejje]=- Offline
Lurker

Registered: 2002-02-14
Posts: 3
Hi I need some help !

I want to control users wallpaper's.
I have mixed W9x to W2K wokstations.
I want a unified wallpaper regardless windows version an if active desktop is active or not.

My problem is that all I have tryed seems to happen before the userprofile is loaded.

So my changes does not work.

This I have tryed:


writevalue( "HKEY_CURRENT_USER\Control Panel\Desktop", "Wallpaper", "inu.bmp", "REG_SZ" )
writevalue( "HKEY_CURRENT_USER\Control Panel\Desktop", "TileWallpaper", "1", "REG_SZ" )
writevalue( "HKEY_CURRENT_USER\Control Panel\Desktop", "WallpaperStyle", "2", "REG_SZ" )

writevalue( "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\General", "Wallpaper", "inu.bmp", "REG_SZ" )
writevalue( "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\General", "TileWallpaper", "1", "REG_SZ" )
writevalue( "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\General", "WallpaperStyle", "2", "REG_SZ" )

writevalue( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop", "NoHTMLWallPaper", "1", "REG_SZ" )

and SetWallpaper ("xxx.bmp")

Pleas help me !

/Jejje

[ 14 February 2002: Message edited by: -=[Jejje]=- ]

Top
#17455 - 2002-02-14 11:36 AM Re: How to control users Wallpaper ????
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
uttleast you could try giving the whole path of the picture instead of just filename.
_________________________
!

download KiXnet

Top
#17456 - 2002-02-14 11:42 AM Re: How to control users Wallpaper ????
-=[Jejje]=- Offline
Lurker

Registered: 2002-02-14
Posts: 3
The funny thing is that my script works fine if i run it after log on process is completed and then loggout/login the user. Then the background is what i want....

Please explain that ! ?????

Regards,
Jejje

Top
#17457 - 2002-02-15 12:23 AM Re: How to control users Wallpaper ????
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what happens if you let it run in logon script and then logoff and on again?
_________________________
!

download KiXnet

Top
#17458 - 2002-02-15 12:36 AM Re: How to control users Wallpaper ????
-=[Jejje]=- Offline
Lurker

Registered: 2002-02-14
Posts: 3
Then it doesn't work.

It seems like my changes in the registry takes place before the userprofile is loaded so the changes i make is overwritten with users own settings. But if I wait until logon process is over and then run my script and after that logg out/in the user my setting will take place.

I think this is really wierd....

Regards,
Jejje

Top
#17459 - 2002-02-14 03:36 PM Re: How to control users Wallpaper ????
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
HKEY_CURRENT_USER is only available after logging into a computer. so, any manipulation during the login process will most likely not take effect.
_________________________
There are two types of vessels, submarines and targets.

Top
#17460 - 2002-02-14 04:03 PM Re: How to control users Wallpaper ????
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Jejje,

have you ever thought of achieiving this with system policies ?
Can be easily implemented !

hth

J.

_________________________



Top
#17461 - 2002-02-15 01:32 AM Re: How to control users Wallpaper ????
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
sealeopard:

I believe the comment about the HKCU only being avaliable after logon should be qualified by adding the statement on 9x clients.... this is correct right?

Later

_________________________
Austin Henderson

Top
#17462 - 2002-02-17 03:11 AM Re: How to control users Wallpaper ????
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Welcome to the board.

Solved?
Be aware that all kind of changes by KiXtart scripts may have only effect
after a reboot.
Sometimes it aren't only registry settings. Windows 9.x is using also INI files for
all kind of settings.
Policy settings doesn't required such reboot.
greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#17463 - 2002-11-15 01:08 PM Re: How to control users Wallpaper ????
mburland Offline
Lurker

Registered: 2002-11-06
Posts: 1
Loc: Harlow
Hi...I'm still very new to Kixtart! I've come across the exact same problem. I work in a school, so the teachers want to stop the students from changing their desktop wallpaper.

Now, I have their Policy set up so that they shouldn't be able to change their wallpaper...however they still find a way!

So I added to my (still work in progress...learning every day) kix login script the line "setwallpaper...." however that also doesn't work.

Then I did what you did - set the script to edit the local registry. However, like you say it only works when run after logon.

Now, what I want to ask you is: Are your users running mandatory or roaming profiles? The users here are using roaming profiles - I have a feeling this might be the source of the problem. (Although I'm probably wrong. )

Please let me know if you find a solution!

Top
#17464 - 2002-11-15 02:35 PM Re: How to control users Wallpaper ????
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Please read ABC's of KiXtart board etiquette and message to new forum users , especially the part about hijacking old threads.

Also, take a look at Sequence of events during logon and implement W2k/XP - Keep the Window visible on login?

What operating system are you using? Please provide more details
_________________________
There are two types of vessels, submarines and targets.

Top
#17465 - 2002-12-01 07:03 AM Re: How to control users Wallpaper ????
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear mburland,

First, welcome to the board.

To prevent the ability to change wallpapers you need to specify NoChangingWallpaper
as policie key.
The complete list of related policies with wallpaper is Active Desktop Restrictions (All Windows)
Please let the board know what the result is.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#17466 - 2004-03-08 11:49 AM Re: How to control users Wallpaper ????
Bertje Offline
Fresh Scripter

Registered: 2003-09-08
Posts: 39
Loc: The Netherlands
Dunno if you have an anwser yet
but I use the SetWallpaper command.
And it works great on win9x and win2k
I have no problems with it.
but if I use SetWallpaper + regkey
than it dont work..
So try to use Setwallpaper only

Example
Code:

WriteValue("HKEY_CURRENT_USER\Control Panel\Desktop", "TileWallpaper", "2", "REG_SZ") ; Set the wallpaper to "Center"

Select
Case InGroup("groep1")
Use I: "\\$server\leerling$"
SetWallpaper ("\\$server\netlogon\bg\groep1.bmp")
EndSelect

_________________________
Greetz, Bertje

Top
#17467 - 2004-03-08 02:39 PM Re: How to control users Wallpaper ????
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Bertje,
Please don't dredge up old threads. This one is nearly 2 years old!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#17468 - 2004-03-09 06:40 AM Re: How to control users Wallpaper ????
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Besides Bertje,

I don't think your comment about this working on Win9x machines is correct. First, you can not reference HKCU during Win9x logons & second Win9x puts some of the screensaver info in the the system.ini file (or maybe it is the control.ini - it is a long time ago & I tend to forget.)


Edited by Jack Lothian (2004-03-09 06:41 AM)
_________________________
Jack

Top
#17469 - 2004-03-09 10:07 AM Re: How to control users Wallpaper ????
Bertje Offline
Fresh Scripter

Registered: 2003-09-08
Posts: 39
Loc: The Netherlands
Quote:

Bertje,
Please don't dredge up old threads. This one is nearly 2 years old!




eep sorry.... I saw at the top of my topic list
_________________________
Greetz, Bertje

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 696 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.042 seconds in which 0.012 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org