Correct Red X Problem Following a reboot

SpaceCoastLife
SpaceCoastLife used Ask the Experts™
on
How can I resolve/correct the Red X on all my mapped drives after reboot? I'm running Windows 10 with drive mapping to a Synology.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
If you can connect just by clicking on the folder, then ignore the red x. Fairly common issue.

If you cannot reconnect, do the following:

Open cmd.exe and then NET USE T: /Delete for All Drives T.

Then map with a batch file, not browsing.

NET USE Z:  /Delete
NET USE Z: \\server\folder

Do this for all drives, save in a .Bat file on your desktop and run it to connect.

Author

Commented:
It does not reconnect when clicking on it. Could you please give me an example of the exact syntax for the batch file?
The drives I need to map are M, N, O, P.

After I save it, is there a way to have it run automatically with each startup? They should be mapped at all times.
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
Open Notepad and put in the commands as I have shown above . 2 lines as shown for each drive.

Save as "connect.bat" on the desktop.

There is a logon folder on Windows to run on startup. I will check the exact folder when I return to my computer
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
You can set Logon Scripts in GPEDIT.MSC as shown below. I do not do this as my laptop moves around. I prefer to have desktop scripts to connect as needed.

Windows-10-Logon-Script-loca

Author

Commented:
I'm not understanding this last part. How do I insert or reference the bat file here?
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
Once you have opened GPedit and navigated to the scripts as shown, you should now be able to find the folder in System32 to place your batch file.

C:\Windows\System32\GroupPolicy\User\Scripts
Business Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018
Commented:
Correction. I recall the above working, but on my Windows 10 machine, newest build, double click on the logon or logoff script in gpedit.msc and then add the batch file there. This works as I tested it here.

Author

Commented:
This is great. Thanks for the help!
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
You are very welcome and I was happy to help you solve this.

Author

Commented:
Turns out this isn't working after all, even though I was pretty sure it was. I'm following your instructions exactly (I think) but the drives are not connecting. Any ideas?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial