#110320 - 2003-12-15 01:30 PM
no right to set wallpaper
|
mvandek2
Fresh Scripter
Registered: 2003-12-10
Posts: 21
|
I try to set the wallpaper on windows 2000 en XP clients with this code:
$foto="foto.bmp" If NOT Exist ("c:\winnt\"+$foto) Copy @lserver+"\fotos\"+$foto "c:\winnt\"+$foto EndIf SetWallpaper ($foto,1)
This doesn't work because the file doesn't get copied to the client, a permissions question. Can the setwallpaper() function only work if you have local admin rights?
|
Top
|
|
|
|
#110322 - 2003-12-15 01:44 PM
Re: no right to set wallpaper
|
mvandek2
Fresh Scripter
Registered: 2003-12-10
Posts: 21
|
Hi Jochen,
No use, problem is that I cannot write in clients Winnt directory.
I tried, when logged in as a user, to browse to the file on the server and copy it in the Winnt directory which also fails.
|
Top
|
|
|
|
#110324 - 2003-12-15 03:27 PM
Re: no right to set wallpaper
|
mvandek2
Fresh Scripter
Registered: 2003-12-10
Posts: 21
|
Yeah, that is probably best.
Thanks
|
Top
|
|
|
|
#110326 - 2003-12-15 04:06 PM
Re: no right to set wallpaper
|
mvandek2
Fresh Scripter
Registered: 2003-12-10
Posts: 21
|
Thanks!
So comnetview is a UDF. What is this and why are they not mentioned in the manual or function reference?
|
Top
|
|
|
|
#110328 - 2004-02-07 12:18 PM
Re: no right to set wallpaper
|
mvandek2
Fresh Scripter
Registered: 2003-12-10
Posts: 21
|
It seems that the server doesn't have rights in any map on the clients. I just can't copy the bitmap.
This will also be a problem then with "addprinterconnection" when copying driver files.
This brings me to another thing I cannot find an answer for:
"When Windows NT connects to the printer, it may copy printer driver files to the local computer."
If the drivers are not known to the clients and server OS where does it get the drivers from? Should you install the printer at least on the server, is that the idea?
(I like to do it all without UDF's)
Mark
Edited by mvandek2 (2004-02-07 01:19 PM)
|
Top
|
|
|
|
#110330 - 2004-02-07 03:37 PM
Re: no right to set wallpaper
|
mvandek2
Fresh Scripter
Registered: 2003-12-10
Posts: 21
|
No UDF's because its all extra handling, I just want an all-in standard login script I can use many times. Than I only need the file plus kix32.exe.
Code fragment:
$foto="test.bmp" If NOT Exist ("C:\test\test.bmp") Copy @lserver+"\users\software\"+$foto "C:\test\"+$foto EndIf SetWallpaper ("C:\test\"+$foto)
ADDPRINTERCONNECTION("\\SERVER-17\HP") SetDefaultPrinter ("\\SERVER-17\HP5500")
(First needs printer share, second printer name, also nice.)
|
Top
|
|
|
|
#110332 - 2004-02-07 05:47 PM
Re: no right to set wallpaper
|
mvandek2
Fresh Scripter
Registered: 2003-12-10
Posts: 21
|
First, thanks for your very quick answers, great !
I found out that the permissions of both the source and destination directory are not sufficient.
What is the best location for both so it won't be necessary to change permissions on all clients (by hand).
Edited by mvandek2 (2004-02-07 06:04 PM)
|
Top
|
|
|
|
#110334 - 2004-02-08 05:23 PM
Re: no right to set wallpaper
|
mvandek2
Fresh Scripter
Registered: 2003-12-10
Posts: 21
|
But you still need to change permissions of the wallpaper folder on the clients right?
Setting permissions of the wallpaper folder on the server ok but I don't want to have to change anything on the clients.
|
Top
|
|
|
|
#110339 - 2004-02-08 06:37 PM
Re: no right to set wallpaper
|
mvandek2
Fresh Scripter
Registered: 2003-12-10
Posts: 21
|
I don't really get all this. There should be a place where you the server has permission to place a file, how about printer drivers (using addprinterconnection()), etc.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 259 anonymous users online.
|
|
|