Solved

Schedlued Task to Map Drives isn't working correctily.

Posted on 2008-10-29
8
192 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
  • 5
  • 3
8 Comments
 
LVL 2

Expert Comment

by:foxmasm
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:rudodoo
Comment Utility
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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:rudodoo
Comment Utility
Do you have any other suggestions?
0
 

Author Comment

by:rudodoo
Comment Utility
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
Comment Utility
Ok then thanks for wasting my time
0
 
LVL 2

Expert Comment

by:foxmasm
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip is around source server preparation. No migration is an easy migration, there is a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now