Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logon Scripting question

Status
Not open for further replies.

SgtB

IS-IT--Management
Joined
Oct 3, 2002
Messages
447
Location
US
We use Kixtart for our logon scripts, this allows us to specify NT groups in the script. I'd like to set a script that copies a file to people who are in a certain group. Here's the trick. I'd like to specify several locations for the script to copy to. I need to set it so that if the first path to copy to does not exist, then its moves on to the next, and then the next, until it finds a path that it DOES have. Once that path is found, it should copy the file to that location.

Any ideas?
 
Nevermind I got it.
 
Maybe I really do not understand your underlying accomplisment. It looks to me try to move files for users, instead of moving or mapping users to the file storage areas.
If you are moving files around, how do you get a clean backup of that file or files which is shared? If you are using NT 4.0 and download the Resouce kit the method below works very well.
You will need to use these in the script along with of key words: NET USE ,Ifmember, global groups, global shares
I place users into local and global groups then use login scripts mapping groups to shared Directories with the files they need and share. This works very well even crossing untrusted Domain.
OR
Why don't you use replicator to move your directory to a server where the is a known share.
Not sure if this is any help, it only seems logical to keep the file in one place unless you are replicating it to another server or directory for others to share. If you replicate the old copy will always be updated by the new copy if you set it up to do so.
 
Thanks for the reply,

Here's the situation. I needed to copy one file to every machine at a site. Their directory structure is different on all machines, so I needed a script to check certain directory structure criteria, and if structure exists copy necessary file to that location. If location does not exist, check for next location and if location exists, copy file. Its a one shot deal, so once the files are copied, then I'm taking the script out.

We do the same thing you do as far as mapping drives for clients. Except we use Kixtart, which uses some different language, but ultimately does the same thing.

Again thanks for the reply!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top