Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to run a batch file that maps a network drive but all of the solutions I have found run the script in the start-up folder which isn't really what it says it is.

How do I map the drive BEFORE the user logs on?

Please don't mark this as a duplicate, I understand this has come up before but all of the solutions I can see on this site deal with the batch at logon.

share|improve this question
Depending on how I interpret your question, there are several thing you could be getting at: Do you mean that you want access to a specific folder on your computer from another computer before someone log on? Like a network share? Or do you want to map a drive on the computer that hasn't been mapped already so that it's available for any user that logs in? Or something completely else that I'm missing? – Roger M Jul 12 '12 at 8:39
up vote 2 down vote accepted

You can have drives reconnect and remapped at startup by using the net use . . .PERSISTENToption.

For running batchfiles at startup, add your batchfile's name to:


share|improve this answer

For this to work at computer startup, you'd have to give access to the Everyone/ANONYMOUS group via Share and NTFS permissions

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .