Delay mounting network drive at boot?

Anonymous
2010-04-17T12:13:51+00:00

I have a network drive that I have mapped as a drive on my toshiba nb205 notebook.  It works fine with one exception, boot-up time. 

When the notebook is booted it can never connect to the mapped drive, if I manually open the drive it will then connect and be fine.

My theory is that windows is trying to connect to the drive before the network connection is established. 

Is there a way to delay mounting the network attached drive until the network establishment is complete?

Windows for home | Previous Windows versions | Internet and connectivity

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2010-04-17T13:17:11+00:00

Try this:

  1. Click Start, then type the three letters cmd into the Search box and press Enter.
  2. Type these commands and press Enter after each:

    net use /persistent:no

    net use * /del /yes

    notepad "%UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\netlogon.bat

  1. Type the following lines:

    @echo off

    set delay=60

    ping localhost -n %delay%

    net use E: "\SomePC\SomeShare"

  1. Save and close the file

From now on your network connection(s) will be made 60 seconds (or whatever delay you set) after you log on. You must, of course, replace "SomePC" and "SomeShare" with actual names. You also need to be careful with your typing. The commands I used will not tolerate many variations.

Was this answer helpful?

70+ people found this answer helpful.
0 comments No comments

45 additional answers

Sort by: Most helpful
  1. Anonymous
    2011-02-24T17:21:16+00:00

    You could run a logon script like this one:

    @echo off

    set ServerIP=192.168.1.100

    :Loop

    ping %ServerIP% -n 2 | find /i "bytes=" > nul && goto Connect

    ping localhost -n 180 > nul

    goto Loop

    :Connect

    net use S: \%ServerIP%\ShareName

    You need to ask your server administrator for his server's IP address, then adjust the batch file accordingly.

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2016-03-16T17:02:51+00:00

    There is a simple solution I tried today. I noticed everytime you restart computer windows deletes credentials for connection to the mapped drive (and you need to enter your username and password on every reconnection after restart). You just need to add them in credential manager manually (if present delete the old credential).

    https://www.youtube.com/watch?v=y\_\_5OVMxbj8

    first is nettwork address: \drivename

    user name: user (for example)

    password: password (your password)

    OK

    After this your drive should map correctly. It works for me on wifi (the nettwork is connected after about 20 seconds). And the drives connects themselves as they are supposed to.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2011-01-03T15:43:20+00:00

    Hello Pegasus,

    can you clarify this for me more please?  I am not sure as to what your asking at this line

      notepad "%UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\netlogon.bat

    Are you asking me to open notepad?

    Also how am i saving the file?

    Thanks

    Joseph

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2010-12-15T03:02:52+00:00

    Genius!  Worked for me 1st try.  I love it when a plan comes together!

    Was this answer helpful?

    0 comments No comments