PDA

View Full Version : multiple logon scripts



mort
07-17-1999, 11:32 PM
I have several logon scripts on an NT server and would like to know how I can run all of them upon login for specified users. I can only get one to run

Anonymous
07-18-1999, 09:54 AM
here's the trick

1. all batch files should be in \rootfolder\system32\repl\import\scripts

2. Your first file should reference the path to your next batch file and so on

3. Example

1.bat (as you know this file is the base file to start the logon scripts)

@echo off

NET USE M: \\SERVER\C$

M:\WINNT\system32\Repl\Import\Scripts\2.bat
M:\WINNT\system32\Repl\Import\Scripts\3.bat
M:\WINNT\system32\Repl\Import\Scripts\4.bat

(you can see that after 2.bat is executed the next command executes 3.bat THEN 4.bat and so on)

Make sure to include the NET USE M: /DELETE command after the very%

Anonymous
07-18-1999, 10:09 AM
in the process of posting I got booted off line. here's the rest:

Make sure to include the NET USE M: /DELETE command after the very last execution


enjoy

mort
07-18-1999, 03:51 PM
Thank you , I will try this. This looks like it will work, and I can add this to one script and not the other as I only want both scripts to run for certain people, and one script for the others. THanks again for your help.

Anonymous
07-18-1999, 07:22 PM
You're welcome Mort !!


Patrick