?
Solved

Schedlued Task to Map Drives isn't working correctily.

Posted on 2008-10-29
8
Medium Priority
?
198 Views
Last Modified: 2010-04-18
I created a batch file on a Windows server 2003 box that is supposed to create a map drive to 3 other boxes that are running Windows 2000.  Here is an example of what the batch file contains

net use R: \ServerName\c$ /user:MyUserName MyPassword /persistent:no

I use the scheduled task to run the batch file.  This worked fine on the box when it was running on Windows 2000.  Also when I log into the server an manually run the batch file it Maps the drives like it's supposed too.  The problem is that it keeps getting disconnected and the other processes that depend on the drives being mapped are not being ran.

I have checked and double checked and I'm inserting my user info and password everywhere it needs to be.  Like I said if I go in an run the process manaually it works fine.  Its just when I log out of the server the map drives are being disconnected.

can anyone help me with this.
0
Comment
Question by:rudodoo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 2

Expert Comment

by:foxmasm
ID: 22831242
net use R: \ServerName\c$ /user:YOUR DOMAIN NAME OR:MyUserName MyPassword /persistent:no FOR EXAMPLE net use R: \ServerName\c$ /user:DOMAIN:MyUserName MyPassword /persistent:no. GOOD LUCK
0
 

Author Comment

by:rudodoo
ID: 22831427
The 3 domain names are the same.  Its a failover server.  The one that run on 2003 is a dev environment.  Will this matter?
0
 
LVL 2

Expert Comment

by:foxmasm
ID: 22831531
I dont think that matter's but can you test the task whit the domain name in the bach file?. I have one system like that and i dont have any problem.
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:rudodoo
ID: 22831607
I did what you suggested and I ran the batch file manually to see if it would map the drive.

Unfortunately, it did not and the command prompt closed before i could see the error message
0
 

Author Comment

by:rudodoo
ID: 22831688
Do you have any other suggestions?
0
 

Author Comment

by:rudodoo
ID: 22832709
Is there anyone else out there that could help!!  

I'm not sure if foxmasm:is able to solve this problem.
0
 

Accepted Solution

by:
rudodoo earned 0 total points
ID: 22833622
Ok then thanks for wasting my time
0
 
LVL 2

Expert Comment

by:foxmasm
ID: 22839617
Im sorry but i have a life. but im want to help you. One thing that you should know is that this is internet and we have over the world different time zones. The others pcs are windows 2000 server? and one other thing if you map a drive whit your user and then logoff is gonna disconnect that drive. Something that you could try is blocking the station in the case that nobody uses that station localy. Im gonna see if i can find a solution for you. GOOD LUCK
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On a regular basis I get questions about slow RDP performance, RDP connection problems, strange errors and even BSOD, remote computers freezing or restarting after initiation of a remote session. In a lot of this cases the quick solutions made b…
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question