• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Any way to "auto re-scan" for network drives? Never finds it on first try...

gorcorps

aka Brandon
I wasn't sure if I should ask it here or the HTPC section or what but I'm hoping this is the best place for it.

Anyway, my main desktop computer is also serving as my media server for a Roku Box. It has Plex on it, and my media is stored on a NAS. The problem is that Windows decides it can't connect to the drive immediately, but that's because it's still booting up and hasn't established a network connection yet. So I have to go into My Computer and refresh the drives for it to realize the connection is fine.

Is there any way to delay when Windows checks for this drive, or at least a way to rescan it ~30 seconds after boot to make sure it sees it? I would like to power up my tower and know it's ready to stream, but as it stands right now I also have to power up the monitor and refresh the drives.
 
If you just ignore it, do you actually have any connectivity problems?

I get that error with mapped drives all the time, because our login script that maps them runs before the network connection is done initializing. However its purely a cosmetic issue as they connect as soon as the network connection comes up, its just sometimes the icon still has the red X on it. As soon as you go to access the drive it works fine and the icon corrects itself.
 
If you just ignore it, do you actually have any connectivity problems?

I get that error with mapped drives all the time, because our login script that maps them runs before the network connection is done initializing. However its purely a cosmetic issue as they connect as soon as the network connection comes up, its just sometimes the icon still has the red X on it. As soon as you go to access the drive it works fine and the icon corrects itself.

The plex app on the Roku box won't play any of the videos unless windows says it's connected. If I'm on the computer then it acts like you mention, where if I access the drive it works fine and then the icon corrects itself. But if it thinks it's disconnected then Plex won't work right until I force windows to realize the connection is fine. So it's not just a cosmetic issue depending on what is trying to access the drive.
 
It's not really a true fix for the problem, but one way to work around it is to create a batch file that includes mapping commands for all of the network drives that you need, then create a Scheduled Task that is triggered by user logon, with a delay of 10 seconds (or 20, or 30, or whatever your system needs in order to make it work) that points to the batch file.

This will make Windows reconnect to all of the network drives after the delay that you specify so you can make sure the network is active and the drives can be accessed.


Sample code for the lines to put in the batch file:
net use Z: \\storage\share /USER:username password

where Z: is replaced by the drive letter you want to use, \\storage\share is the device name (or IP) and share name of the network resource, and 'username' and 'password' are replaced by the credentials that are needed to access the resource.
 
Back
Top