Page 1 of 1 1
Topic Options
#159525 - 2006-03-21 01:31 AM Copying files to directory without permisson
rheffels Offline
Lurker

Registered: 2006-02-22
Posts: 4
Hello there,

at the office here they use Kixtart and so I need to learn this funky scripting.
I ran into a problem today, where we use a program that stores it's settings in C:\Program Files\yada yada\.
Since I want all users to have the same settings, I wanted to copy the setting file there on login.

But the users are not allowed to write to that folder, so this copy function will ofcourse not copy the files
Is there a way to make Kixtart copy the file here anyway ?
Can I add a password or something and copy it through the "Default share" that's on the C: drive or something like that ?

Any other suggestions ?

Top
#159526 - 2006-03-21 01:45 AM Re: Copying files to directory without permisson
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Elevating perms in a user logon script is generally frowned upon. I suggest you use a central admin script or a GPO startup script instead.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#159527 - 2006-03-21 01:57 AM Re: Copying files to directory without permisson
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Hello Rachid and Welcome to the board.


I'd recommend as Les says and use a GPO to copy the file.

You could also use a remote admin script to copy the file which we could help you write, but using the GPO for a single file would probably be best.


Edited by NTDOC (2006-03-21 02:10 AM)

Top
#159528 - 2006-03-21 05:08 AM Re: Copying files to directory without permisson
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Code:

comps$=comnetview() ; UDF from the UDF Forum
for each $comp n $comps
copy '\\server\share\folder\file.txt' '\\'+$comp+'\c$\program files\program\'
next


will copy a file to all computers in the domain. Lacks even basic error checking and is for illustration purposes only.
_________________________
There are two types of vessels, submarines and targets.

Top
#159529 - 2006-03-21 03:23 PM Re: Copying files to directory without permisson
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
use a gpo, and let the system run the script for copying.
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!

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 640 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.054 seconds in which 0.027 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