How to automatically reconnect a mapped drive?

Kelemvor

Lifer
May 23, 2002
16,928
8
81
Didn't know whether to post this in Networking or Windows but here goes...

I have a Plex Server running Windows 7. My media is on a mapped drive (V:). Every time that computer reboots, the drive shows up with a red 'x' until I click on it the first time. Then everything works fine.

Is there any way to have the network drive activate itself every time the computer reboots?

Thanks.
 
  • Like
Reactions: nerp

nerp

Diamond Member
Dec 31, 2005
9,865
105
106
Wondering myself. Feel like a dumbass for not knowing the answer. I suppose some kind of script or batch job to just browse the folders would work. I am in the exact scenario with a plex server with mapped drives to my file server. I tend to leave the machine on 24/7 but power down now and then.
 
  • Like
Reactions: Kelemvor

PliotronX

Diamond Member
Oct 17, 1999
8,883
107
106
Perhaps try these steps out. It's also pretty easy to script a reconnection of the mapping (say X:) in a batch and pin or shortcut on the desktop client-side:

net use X: /delete && net use X: \\server\share

edit- forget all this and map by IP address then add the credentials to the IP in Control Panel -> Credential Manager "Add Windows Credentials." See if that maintains through reboots.
 
Last edited:

Elizine

Member
Aug 15, 2015
25
0
16
bodhost.com
Refer to the solution here -https://social.technet.microsoft.com/Forums/office/en-US/80ffb38e-1414-4fd1-8cf9-8999aa01c878/auto-reconnect-mapped-network-drive?forum=w7itpronetworking
 

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,527
415
126
Is it Just the Red X that "offends" you, or there is something functional that does not working?




:cool:
 

Ketchup

Elite Member
Sep 1, 2002
14,558
248
106
That is a bit odd for a local network, unless you have a network setup more complex than I am thinking of.

For example. I have mapped drives at home. The only time they would show the x is if I rebooted my "main" computer while my "server" computer was off or offline. The only time I experience what you are talking about is if I connect to a folder I have mapped from the office when I am working from home, in which case I would need to be connected to the VPN to access it.
 

freeskier93

Senior member
Apr 17, 2015
487
19
81
That is a bit odd for a local network, unless you have a network setup more complex than I am thinking of.

For example. I have mapped drives at home. The only time they would show the x is if I rebooted my "main" computer while my "server" computer was off or offline. The only time I experience what you are talking about is if I connect to a folder I have mapped from the office when I am working from home, in which case I would need to be connected to the VPN to access it.

Yeah, I thought mapped drives were already suppose to try and reconnect on login. For our computers at work once I map my network drive on a computer it will always automatically connect to it again on login. On my work laptop, when I'm at home, of course I get the red x because it can't connect. Have to connect to VPN first then click the drive to connect.
 

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,527
415
126
The OP has a Plex Server.

Thus Internet and IT issues are probably "none" issues.

If the Plex is a Sleep while while the computer Reboots there is Red X. Once a connection is requested the Plex probably wakes up and every thing is OK.

Given the current info described by the OP, It is probably a None Problem, "Problem"



:cool:
.
 

Ketchup

Elite Member
Sep 1, 2002
14,558
248
106
See, I was wondering if WOL or some type of sleep was involved, but I guess we'll never know until he responds.
 

Kelemvor

Lifer
May 23, 2002
16,928
8
81
Sorry, forgot to come back and update this.

The problem is that when my Fire Sticks run and talk back to the Plex Server, all the videos show as unavailable if the Plex server had rebooted recently due to Windows Updates or whatever. All I have to do to fix it is remote into the Plex server and see that the mapped drive shows the red 'x'. I then just click the drive to reactivate the connection and everything is instantly fixed.

The drive doesn't go away, but the drive isn't actually active until you click on it the first time. After that it's fine until the next time the server reboots. This happens with my work computer as well if I'm working at home. The drives initially show up with the red 'x' until I click them to tell the computer to go access the drive and then everything is fine after that.

I'll check out a batch file or that other link and see what I can fine.
 

freeskier93

Senior member
Apr 17, 2015
487
19
81
Sorry, forgot to come back and update this.

The problem is that when my Fire Sticks run and talk back to the Plex Server, all the videos show as unavailable if the Plex server had rebooted recently due to Windows Updates or whatever. All I have to do to fix it is remote into the Plex server and see that the mapped drive shows the red 'x'. I then just click the drive to reactivate the connection and everything is instantly fixed.

The drive doesn't go away, but the drive isn't actually active until you click on it the first time. After that it's fine until the next time the server reboots. This happens with my work computer as well if I'm working at home. The drives initially show up with the red 'x' until I click them to tell the computer to go access the drive and then everything is fine after that.

I'll check out a batch file or that other link and see what I can fine.

There's two possible/likely issues here. First is when you mapped the drives you checked the box that says reconnect at login, right? Second, Windows might be trying to reconnect the network drive before the network has been fully set up. Are you set up for automatic login?