1827704 Members
3210 Online
109967 Solutions
New Discussion

Re: Batch scripts

 
Rooky
Regular Advisor

Batch scripts

Hi everybody, I created about 10 batch files and save them on the script folder of my 2003 server so everytime a user logs, this script will run under that specific user and map a network drive to another server. It works pretty well in some users, but not in others. Can you guys please help me?
4 REPLIES 4
WFHC-WI
Honored Contributor

Re: Batch scripts

Hi Rooky,

Can you offer some more details? Did you put these scripts into the "Default User" directory?

If so, only users who hadn't previously logged on to the server will run the scripts.

Do all users have appropriate rights to the other server? Does the script map a specific drive letter that may already be in use for some users?
Rooky
Regular Advisor

Re: Batch scripts

Hi WFH-WI and thanks for your quick reply, I added these scripts on my domain controller server, right where I just created each user. The folder name is located in this path: \\servername\SYSVOL\domain.local\scripts
Every time a user logsin this script has to run when I add the name of the file on each user profile. Each user has its own script file named with he or her name.
WFHC-WI
Honored Contributor

Re: Batch scripts

Hi again rooky,

My first guess would be a permissions issue on the server that you are attempting to have users map a drive to.

If I understand correctly, you have a login script listed in each user's Active Directory profile. The script runs fine for some users and not for others.

Could you attach the batchfile that is not working?
Rooky
Regular Advisor

Re: Batch scripts

Solution found