Hi Chris, based from the video you made... I think what I would be needing is only the "ReconnecNetDrives". Would you recommend also using "ConnectDrives"? I will be trying to use the ReconnectNetDrives today before I go off the weekend. Hopefully it addresses my problems. Thank you and I look forward to your response.
2 years later I still use this. Just had to reinstall windows after 2 years of usage, and I lost the script file. But now I found your video again. Great solution!
Fantastic and Simple! Well done. I really needed this as I have built a Plex Media Server and initiate an automatic reboot at 3:00 am and if my NAS drives don't connect the Plex server will fail to record our scheduled shows and all hell breaks loose at home lol. Thanks for this great workaround! Peter (Toronto)
Thank you! OMG i have been searching for a solution to this for a year.... The entire time i have been using a workaround Filezila ftp server hosted on LAN -.-!
Yes, it works !!! It's unbelievable that this ancient problem has not yet been solved by Microsoft Thanks for your creative thought that helps, I'm sure for a lot of people
💥 This is one of the greatest scripts ever made for Windoze10 💥 Now reconnecting my mapped networkdrives works flawlessly by just running the script if they check as offline 🙌🥳 BIG THANX
Nice Video and explained well, your script saves me from having to open explorer each and every time I boot the PC to reconnect the network shares. Thanks again!
Used "RecconnectNetworkDrives" this worked immediately, thanks a lot. Are these scripts safe to use by the way?
4 года назад
Amazing work, thanks mate! This bug is really annoying. A second bug what I was found but not luck to find the solution is, that newer versions of Windows like 8, 8.5 and 10 are using network names of the computer instead of the IP adress. Yes its make sence, if your compuer have a dynamic ip assignment. But I have the problem, that Windows after rebooting is not able to search the computers in the network by the name. They are only searchable by IP adress. And very interesting thing is that after fresh installation of Windows is everything working just fine for some time and just out of the nowhere it stop working. As I said, my walkaround is have a static IP adresses assigment to my computers with shared drives. Anyway, thanks again for this script :)
For the first script, wouldn't it make more sense to create a array containing all the drive letters and then itterate through that array instead of writing the same command 26 times? that would make it even quite modular as you could manually add or remove the drives you need
Wow I've been looking for a solution to this for so long. Finally updated to 1803, and completely forgot they removed Homegroups, adding network shares was a pain
Your script worked great for me. A small bit of feedback. I have 3 to 4 network drives that I VPN into for clients. These aren't online unless I am connected to their networks. With your script an explorer window pops up with an error. Which I have to close manually, would be nice if the script closed these for me :) anyway thanks a bunch you have solved an issue for us!
i added these 2 lines : net use * /del /yes net use /persistent:no above: REM Template with login details: net use DRIVE: PATH /user:NAME PASS /persistent:NO *in the second script mentioned in the video I was getting a "device name already in use" error when opening drive from explorer I'm still not sure if "persistent" should be YES or NO if I want the drive to connect automatically on startup otherwise, the script worked great, thanks!
Thanks for the code! I kinda knew what the problem was, and you've done some elegant stuff with the wait states and checking. Also "for %%v in (a b c...[OMFG! all 26 of them!]...x y z)" can iterate through the alphabet for you in DOS/Windows batch to tighten things up by 25 paragraphs of code... (type "for /?" for syntax.) Windows needs to execute drive mappings AFTER credentials are supplied. Why this is still an issue after several versions of Windows is a mystery.
@battle(non)sense, (do @'s work in the RUclips?) ... Thank you so much for your work. Additionally, any way to get rid of the annoying notification or to get the script to run before the network drive connectivity check?
If you are using a German version of Windows, the Windows Credentials can be found at: Systemsteuerung\Alle Systemsteuerungselemente\Anmeldeinformationsverwaltung
After using the first of these scripts for well over a full year, I have an issue with it I cannot get around. The script takes too long to work its magic. The issues are if you have an app that relies on these mapped shares start with your PC, it will ALWAYS fail because the share isn't ready yet. I will try disabling the autostart of the app and add that to the bottom of the script and see if that helps or I may use the second one and see how that goes. Just though some might like to know
Awesome!!! Mil gracias!!!! I've been looking for a solution to this since I bought my NAS. Sad though it isn't already solved by Microsoft itself, NAS are in so many houses nowadays
Many thanks for this video, i have been having this issue for years and now its been 'worked around'. Is it possible to get rid of the taskbar notification though? I have hidden in under the arrow for now but it still shows during startup.
I wrote a new script that should fix the issues some people had due to how I detected the offline drives. could you try this one please? we.tl/VWwLGTBUts
Hm, still giving me --------------------------- Restoring Network Connections --------------------------- An error occurred while reconnecting X: to \\(drive name) Microsoft Windows Network: The network path was not found. This connection has not been restored. --------------------------- OK --------------------------- It's like it's not waiting long enough or something
So you have multiple network drives, pointing to the same source/PC, and only this one is causing troubles? The error means that windows could not connect to the target PC, which you usually only get when your network or the target PC is down. In W10 there was also this bad bug which caused that windows could not resolve the IP address for a hostname, and so it could not connect to "server" because it could not find the IP for that host. This should have been fixed with the new update from last week.
4 года назад
You're the best! The script works like a charm ♥ Thank u!
Hey man, consider you script for network drives accessed via VPN (manual connected VPN). I use your script and task scheduler to track and trigger your script, because otherwise from startup it will launch it before drives accessible. Cheers
windows updates sometimes stop services, DNS Client, Function discovery resource publication, SSDP Discovery, UPnP Device Host. Type services in the cortana search box, set them to automatic
Will you make a video on how to fix nat type 3 for ps4s. There are already decent videos out there explaining this but I feel you would be able to produce the best video for the issue.
I don't have a PS4 here, so I can't really comment on that. Basically this is a router issue. Enabling UPnP on the router can 'fix' it, but this raises security concerns as it then allows any application on the LAN to punch a hole into your firewall.
New subscriber! Will the first script work even if I can't access the files of the mapped drive? My problem is every time I reboot my NAS drive shows as disconnected. Tks
Doing g this later today when I wake up. Genius, Chris!! Just genius!! I also like how you put it on GitHub..and Microsoft is trying to by them. Making it easier for Microsoft to fix the problem! Haha
Thank you sooooooo much! My iTunes is mapped to a network drive and when I import music without connecting a drive the songs are locally stored.... Thank you so much!
don't if you can still see this, i am just wondering what if i am not in my LAN? will this script keep trying to find those disconnected network drives?
I'm finding that the latest Synology server update (DSM 6.2) has slowed down my NAS to a point where Windows can't see the drive folders for almost a minute (the server needs to be woken up) , Synology should never had pushed this update for older devices
You can use if not DEFINED IS_MINIMIZED set IS_MINIMIZED=1 && start "" /min "C:\path-to-batch-file" && exit To point to the script and make sure it's minimised and close once done. I too had this problem, although my script was a lot less encompassing and just involved me delaying for 30 seconds, opening up the 2 network drives in explorer and closing after 2 seconds.
uhm, about Fortnite's netcode: I've noticed that when a lot of players are together in one area (mainly in the 50 v 50 mode) that the tickrate is decreased from 30 to ~20 and 75 to ~50 (not packet loss), this is probably becasue of a limit on how much data (not only quantity (how many packets are sent) but also quality (how big those packets are)) can be sent. in your analysis of Fortnite's netcode you said that the ticktrate wasn't 100% stable, maybe it was due to you hitting that cap on how much data could be sent/recived. maybe you could also monitor how much data is being send and then compare its graph to the tickrate's (probably best tested in 50 v 50).
Please do a Netcode Analysis of "Squad" it attempts to be a realistic 80player Military Simulation. Since you die very fast I think it is important to have great netcode. :) Greetings
Once in a while? Try every boot... I really dont understand, how this is something, that is happening since windows xp.. still happening today.. really.. what the f#ck...
I raised this problem with Microsoft years ago, and they still haven't fixed it! The problem seems to be a timing issue. Windows tries to connect to a network path at boot-up, but the path hasn't been created. All that's required to fix it, is a simple delay, or for Windows to detect the server first, before trying to connect to it. I got round the problem by creating a batch file with the network drive information in it, for instance; ECHO Map Drive M: net use M: \\\music /persistent:no. Then create a task in Task Scheduler to execute the batch file at logon, you also need to select network available, and add a delay if necessary. A network address would be something like: 192.168.nnn.nnn or it could be the server name. As you say, use Manage Windows Credentials to store any password information, because it's more secure than leaving it in a batch file.
WHat i need to do if I have some sharing on server 2012 and when user restart PC the windows 10 cannot map ny drive, but if you close system and startup then it is ok, only restart have problem :)
ReconnectNetDrives works perfectly, only if I run the script by manually doubleclicking on the saved file. If I put this file in the Startup folder, it creates a LOT of error messages. So, it works in a way, only with a little help from a private "workaround"... ;-) Really wonder why it refuses to do the job automatically as supposed! Anybody? Anyway, this is by far the closest I have com to (finally, after so many years) to solve this annoying problem. Big thanks for your effort. Sorry to say, Microsoft left us behind, does not care, nor listen. BIG SHAME!
Windows is so annoying. On Linux those things either work or can be fixed by hand quite easily. Now that my network drives work, I just need a solution for my login showing me that f*ing black screen with cursor for 2 minutes.
► Support Battle(Non)Sense: www.patreon.com/battlenonsense
► Download
➜ ReconnectNetDrives.bat gist.github.com/BattleNonSense/fb27377bc8a0ca2e9c58f28924ce277b
➜ ConnectDrives.bat gist.github.com/BattleNonSense/6cb7cca393f44ba043705962949a179a
Hi Chris, based from the video you made... I think what I would be needing is only the "ReconnecNetDrives". Would you recommend also using "ConnectDrives"?
I will be trying to use the ReconnectNetDrives today before I go off the weekend. Hopefully it addresses my problems.
Thank you and I look forward to your response.
2 years later I still use this. Just had to reinstall windows after 2 years of usage, and I lost the script file. But now I found your video again. Great solution!
Fantastic and Simple! Well done. I really needed this as I have built a Plex Media Server and initiate an automatic reboot at 3:00 am and if my NAS drives don't connect the Plex server will fail to record our scheduled shows and all hell breaks loose at home lol. Thanks for this great workaround!
Peter (Toronto)
I am a new NAS user. I like your workaround, the ReconnectNetDrives.bat
it's simple and effective.
thanks
Wow Chris that script is surprisingly well done. Good job I have this problem every time I reboot!
Thank you! OMG i have been searching for a solution to this for a year....
The entire time i have been using a workaround Filezila ftp server hosted on LAN -.-!
CLUTCH! Thank you so much
Finally, a fix that just works. Thanks for spending time to do write this.
Yes, it works !!!
It's unbelievable that this ancient problem has not yet been solved by Microsoft
Thanks for your creative thought that helps, I'm sure for a lot of people
💥 This is one of the greatest scripts ever made for Windoze10 💥
Now reconnecting my mapped networkdrives works flawlessly by just running the script if they check as offline 🙌🥳
BIG THANX
Nice Video and explained well, your script saves me from having to open explorer each and every time I boot the PC to reconnect the network shares. Thanks again!
Man, i have to say that your channel is WORTH to be subscribed
The funny part is, I see threads about this issue going back at least 6 years... Microsoft doing the great work that they do!
Used "RecconnectNetworkDrives" this worked immediately, thanks a lot. Are these scripts safe to use by the way?
Amazing work, thanks mate! This bug is really annoying. A second bug what I was found but not luck to find the solution is, that newer versions of Windows like 8, 8.5 and 10 are using network names of the computer instead of the IP adress. Yes its make sence, if your compuer have a dynamic ip assignment. But I have the problem, that Windows after rebooting is not able to search the computers in the network by the name. They are only searchable by IP adress. And very interesting thing is that after fresh installation of Windows is everything working just fine for some time and just out of the nowhere it stop working. As I said, my walkaround is have a static IP adresses assigment to my computers with shared drives. Anyway, thanks again for this script :)
For the first script, wouldn't it make more sense to create a array containing all the drive letters and then itterate through that array instead of writing the same command 26 times?
that would make it even quite modular as you could manually add or remove the drives you need
Wow I've been looking for a solution to this for so long.
Finally updated to 1803, and completely forgot they removed Homegroups, adding network shares was a pain
Your script worked great for me. A small bit of feedback. I have 3 to 4 network drives that I VPN into for clients. These aren't online unless I am connected to their networks. With your script an explorer window pops up with an error. Which I have to close manually, would be nice if the script closed these for me :) anyway thanks a bunch you have solved an issue for us!
Thank you! A well-written and really helpful little script!
i added these 2 lines :
net use * /del /yes
net use /persistent:no
above:
REM Template with login details: net use DRIVE: PATH /user:NAME PASS /persistent:NO
*in the second script mentioned in the video
I was getting a "device name already in use" error when opening drive from explorer
I'm still not sure if "persistent" should be YES or NO if I want the drive to connect automatically on startup
otherwise, the script worked great, thanks!
_"I was getting a "device name already in use" error when opening drive from explorer"_
then it was already mapped :)
Thanks for the code! I kinda knew what the problem was, and you've done some elegant stuff with the wait states and checking. Also "for %%v in (a b c...[OMFG! all 26 of them!]...x y z)" can iterate through the alphabet for you in DOS/Windows batch to tighten things up by 25 paragraphs of code... (type "for /?" for syntax.)
Windows needs to execute drive mappings AFTER credentials are supplied. Why this is still an issue after several versions of Windows is a mystery.
Thanks Chris. Been looking for something like this since Vista. Could have worked out how to write one myself but never got round to it.
Nice! But how do I turn off the notification bubble in the lower right corner?
@battle(non)sense, (do @'s work in the RUclips?) ... Thank you so much for your work. Additionally, any way to get rid of the annoying notification or to get the script to run before the network drive connectivity check?
Excellent, thanks Chris for solving this headache.
Thank you. Works perfect for all of my Windows 10 PCs.
Nice work, very helpful, I was going crazy with this.
Keep up the good work.
You are the man! Thank you for this, no one seems to know how to fix this issue.
Excellent, great work around for a long time annoying issue. Thank You!
This video and script is a blessing. Thank you so much for creating this and posting it!
You earned your self a subscriber and a fan!!! Thank you this was driving me crazy
thank you - works like a charm and your instructions were clear and easy to follow.
If you are using a German version of Windows, the Windows Credentials can be found at:
Systemsteuerung\Alle Systemsteuerungselemente\Anmeldeinformationsverwaltung
You're a life saver!! I'm suscribing to your channel
It actually worked...thank you Chris!!
excellent work, buddy. very good workaround for this pain of the ass.
Chris, is your NAS JBOD or RAID? You got a Lot of disc space right there, more then me and i already have a whopping 19 TB
The drive size (And usage for that) is shared if you dont specify an explicit size limit for a share, so its prolly a 4x6TB setup
kinsi55 Makes Sense, but no security
I use unRAID :)
ruclips.net/video/TZSUrZQXGqM/видео.html
After using the first of these scripts for well over a full year, I have an issue with it I cannot get around. The script takes too long to work its magic. The issues are if you have an app that relies on these mapped shares start with your PC, it will ALWAYS fail because the share isn't ready yet. I will try disabling the autostart of the app and add that to the bottom of the script and see if that helps or I may use the second one and see how that goes. Just though some might like to know
Fabulous. Works perfectly. Thank you very much Chris!!
Can you show us how you can backup/Restore your network drives? this would be a good video
Thank you so much. That reconnectnetdrives worked a treat!!!!
This did it for me. Thanks! Microsoft should pay you to fix their yearslong mess :)
Excellent Solution, Hats off to you guys. Thank you so much for sharing.
That's a nice thumbnail. How can you create these angled screenshots?
Photoshop -> Edit -> Perspective Warp :)
Awesome!!! Mil gracias!!!! I've been looking for a solution to this since I bought my NAS. Sad though it isn't already solved by Microsoft itself, NAS are in so many houses nowadays
NICE !!!! thanks for sharing Chris !!
Many thanks for this video, i have been having this issue for years and now its been 'worked around'. Is it possible to get rid of the taskbar notification though? I have hidden in under the arrow for now but it still shows during startup.
Huh, this worked for one drive, but another just pops up a manual message saying "Path not found" but it still works. weird.
I wrote a new script that should fix the issues some people had due to how I detected the offline drives.
could you try this one please? we.tl/VWwLGTBUts
Hm, still giving me
---------------------------
Restoring Network Connections
---------------------------
An error occurred while reconnecting X: to
\\(drive name)
Microsoft Windows Network: The network path was not found.
This connection has not been restored.
---------------------------
OK
---------------------------
It's like it's not waiting long enough or something
You can try and increase the timeout /t value from 5 to something greater. but I wonder if the cause of your problem is a different once. :(
The funny part is this specific drive wasn't even the one refusing to connect originally
So you have multiple network drives, pointing to the same source/PC, and only this one is causing troubles?
The error means that windows could not connect to the target PC, which you usually only get when your network or the target PC is down.
In W10 there was also this bad bug which caused that windows could not resolve the IP address for a hostname, and so it could not connect to "server" because it could not find the IP for that host. This should have been fixed with the new update from last week.
You're the best! The script works like a charm ♥ Thank u!
Works like a charm. Thank you!
I see you are using Stardock Fences ;) I have had a license for that since beta. Great application!
I added shortcuts to network drives in "startup" folder to workaround that
Clever
Hey man, consider you script for network drives accessed via VPN (manual connected VPN). I use your script and task scheduler to track and trigger your script, because otherwise from startup it will launch it before drives accessible. Cheers
I wonder if using DIR on a directory and routing it to NUL would work better then opening explorer processes. Can't test it, mine are online already
Good thinking, simple and good work around :)
windows updates sometimes stop services, DNS Client, Function discovery resource publication, SSDP Discovery, UPnP Device Host. Type services in the cortana search box, set them to automatic
Oh! You are so cool, and saved me!
This BUG is really a shame on Microsoft!!!
You the man - cheers for the hard work!
Hey Chris, could You do a video talking about internet on console? Mtu, DNS and NAT types comes to mind now.
Will you make a video on how to fix nat type 3 for ps4s. There are already decent videos out there explaining this but I feel you would be able to produce the best video for the issue.
I don't have a PS4 here, so I can't really comment on that. Basically this is a router issue. Enabling UPnP on the router can 'fix' it, but this raises security concerns as it then allows any application on the LAN to punch a hole into your firewall.
New subscriber! Will the first script work even if I can't access the files of the mapped drive? My problem is every time I reboot my NAS drive shows as disconnected. Tks
In the command prompt(run as admin) I use:
net stop workstation /y
net start workstation
Thanks for the help man, I appreciate it.
Fantastic!! Thank very much for this fine script, a solution on my Windows 10.
noooo !!! year 2019 and still is a manual fix !? what the hell Microsoft?
SO! thnx alot for this fantastic tutorial!!! help my alot
Works perfectly, thank you!
Doing g this later today when I wake up. Genius, Chris!! Just genius!! I also like how you put it on GitHub..and Microsoft is trying to by them. Making it easier for Microsoft to fix the problem! Haha
Hi been trying to solve this problem for awhile now great fix nice and simple A++++ I don't post messages very often but this fix deserves one
Thank you sooooooo much! My iTunes is mapped to a network drive and when I import music without connecting a drive the songs are locally stored.... Thank you so much!
don't if you can still see this, i am just wondering what if i am not in my LAN? will this script keep trying to find those disconnected network drives?
I have a MSI GS63VR (laptop). My Wi-Fi disconnects randomly sometimes. Is it normal? Is there a way to stop it?
Thanks for the tip. While I might not have a use for it yet, it may come handy in the future. ^^
I'm finding that the latest Synology server update (DSM 6.2) has slowed down my NAS to a point where Windows can't see the drive folders for almost a minute (the server needs to be woken up) , Synology should never had pushed this update for older devices
Thank you very much this is a life saver for me!
It works.. Amazing.. Thank you !
Thanks a lot. A problem solver. It really works graet.
You can use
if not DEFINED IS_MINIMIZED set IS_MINIMIZED=1 && start "" /min "C:\path-to-batch-file" && exit
To point to the script and make sure it's minimised and close once done.
I too had this problem, although my script was a lot less encompassing and just involved me delaying for 30 seconds, opening up the 2 network drives in explorer and closing after 2 seconds.
uhm, about Fortnite's netcode:
I've noticed that when a lot of players are together in one area (mainly in the 50 v 50 mode) that the tickrate is decreased from 30 to ~20 and 75 to ~50 (not packet loss), this is probably becasue of a limit on how much data (not only quantity (how many packets are sent) but also quality (how big those packets are)) can be sent.
in your analysis of Fortnite's netcode you said that the ticktrate wasn't 100% stable, maybe it was due to you hitting that cap on how much data could be sent/recived.
maybe you could also monitor how much data is being send and then compare its graph to the tickrate's (probably best tested in 50 v 50).
thankyou so much mate, your script worked perfectly!!!!
I keep getting error that "This network connection does not exist" whenever I attempt to Citrix. Please help.
Please do a Netcode Analysis of "Squad" it attempts to be a realistic 80player Military Simulation. Since you die very fast I think it is important to have great netcode. :)
Greetings
Thank you ! Saved a lot of my time ;D
Fixed my issue! Thanks!
Once in a while? Try every boot... I really dont understand, how this is something, that is happening since windows xp.. still happening today.. really.. what the f#ck...
How do you get that interactive download widget in the bottom right of your desktop?
Stardock Fences 2
Thank you for your script! There's a way to not open all the network folder after running the script? thasnk you!
Many thanks - very much appreciated.
I raised this problem with Microsoft years ago, and they still haven't fixed it! The problem seems to be a timing issue. Windows tries to connect to a network path at boot-up, but the path hasn't been created. All that's required to fix it, is a simple delay, or for Windows to detect the server first, before trying to connect to it. I got round the problem by creating a batch file with the network drive information in it, for instance; ECHO Map Drive M: net use M: \\\music /persistent:no. Then create a task in Task Scheduler to execute the batch file at logon, you also need to select network available, and add a delay if necessary. A network address would be something like: 192.168.nnn.nnn or it could be the server name. As you say, use Manage Windows Credentials to store any password information, because it's more secure than leaving it in a batch file.
Thank you very much sir!
I wonder if script will work if executed during logon and not after
Thank you, you are a great help!
Thanks! Works perfectly!!!!
Awesome ! Thank You !!
THIS IS AWESOME, THAT DOES WORK!
Still not working but my other pc connects to the mapped drives just fine. This worked great until a recent reeboot, I'm at a loss
WHat i need to do if I have some sharing on server 2012 and when user restart PC the windows 10 cannot map ny drive, but if you close system and startup then it is ok, only restart have problem :)
hmm weird I get the error everytime I restart but never need to manually reconnect
ReconnectNetDrives works perfectly, only if I run the script by manually doubleclicking on the saved file. If I put this file in the Startup folder, it creates a LOT of error messages.
So, it works in a way, only with a little help from a private "workaround"... ;-)
Really wonder why it refuses to do the job automatically as supposed! Anybody?
Anyway, this is by far the closest I have com to (finally, after so many years) to solve this annoying problem. Big thanks for your effort. Sorry to say, Microsoft left us behind, does not care, nor listen. BIG SHAME!
Same error here when I place it on the startup folder. How did you work around this? thanks
Thank you, but still pops up. I know there is a way to keep the message from appearing. I just need to find it. But, thanks again.
Windows is so annoying. On Linux those things either work or can be fixed by hand quite easily. Now that my network drives work, I just need a solution for my login showing me that f*ing black screen with cursor for 2 minutes.