• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 300
  • Last Modified:

Drive mapping won't stick with script

This question is about two new XP boxes in a Workgroup environment. I have a very simple batch file in the Startup folder that maps a drive letter. The problem is that when the user logs in, the drive is not mapped. However, if I wait till the login process completes, and then run the startup.bat file manually, everything works.

I'm not too accustomed to working without my DC group policies, and my gut feel is that this is a function of these being very fast computers and running the scripts before all the other stuff is ready. I could probably add a /persistent switch, but I think that would just mask the underlying problem.

Suggestions? Thanks in advance.
net use M: /delete
net use M: \\computername\sharename

Open in new window

0
ovidbailey
Asked:
ovidbailey
  • 2
1 Solution
 
SStoryCommented:
I use the

/persistent:no

and have no problems doing this from the startup folder
0
 
MightySWCommented:
Yes, this is correct.  Use SStory's suggestion.
0
 
ovidbaileyAuthor Commented:
Thanks, guy!
0
 
SStoryCommented:
You are welcome!
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now