pc loses drive mapping

zelfanet
zelfanet used Ask the Experts™
on
Hello,

I have a Windows 10 pc that loses its drive mapping whenever it is restarted.

It connects to a Windows server 2012 r2 server. I believe it may be related t the server as it happened with his last Win 7 machine.


Thanks

Just realized it is all users, when they restart the drive goes away, even if they check, reconnect at signin.
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:
This is probably due to Persistence.

Open cmd.exe and run NET USE T: /Delete for all T (all drives).

Now set up the script or policy so that drives are deleted before they are mapped. This will work.

I have and my clients have Windows 10 Pro on Server 2012 R2 and never lose their drive mappings.
Patrick BogersDatacenter platform engineer Lindows

Commented:
Hi

Create .bat file and add it to startup.

net use e: \\financial\letters

In this example we make a e: drive mapping to server financial and folder letters.

Cheers

Author

Commented:
Hi guys,

It isn't everybody, but a group of people that their drives map and it then it goes away. I found some machines that keep it.

The share that they connect to, ends in &G so when I try to do it with the net use command I get 'g is not recognized as an internal or external command'.
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Patrick BogersDatacenter platform engineer Lindows

Commented:
Hi again,

You can experiment with putting the path in quotes.
For my experience mapping gone broken is often caused by card readers, if they have one simply disable it.

Author

Commented:
The map never breaks, only when the pc is restarted.

I believe it has something to do with this particular share as they can map to other shares on the same server and they will stay connected upon restarting.
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
Try running TCP/IP Reset

Open cmd.exe with Run as Administrator
Then  netsh int ip reset c:\resetlog.txt
Also, ipconfig /flushdns followed by net stop dnscache followed by net start dnscache
Then restart the computer
Tom CieslikIT Engineer
Distinguished Expert 2017

Commented:
This can point to your DNS resolving issue.Before you'll log on computer should get IP address from DHCP so is DNS settings.
It looks like computer, in moment log on doesn;t have DNS information and doesn;t know about network configuration that's why is loosing network drives.

Double check your event log on server and double check your DHCP configuration.
FOr test only you can assign permanent IP address to workstation you have problem with and restart it.
Check if computer with static IP will loose network drives.

If not, try make your lease in DHCP shorter, let say 8 hours.

Author

Commented:
Unfortunately  resetting ip didnt work. By the way, this pc I'm using is brand new out of the box. It appears to be random, some that have 7work and some dont, some that have 10 work and some dont. Drives can be mapped to any other shares on the server and they will stay on reboot, but not this share...
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
I'm using is brand new out of the box.

Make sure Advanced Network Settings are correct:  Private or Work Network, Network Discovery ON, File and Print sharing ON.

Author

Commented:
I tried a static ip and the drive was still gone.
Advanced network settings are correct.

There is no problem keeping the drive mapping to any other share, just this share in particular.
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
If nothing is wrong, I wonder if the image the manufacturer used is somehow bad. We do not have issues with new computers staying connected.

Author

Commented:
John,

This happens on pcs with different os's and different manufacturers. Im glad your computers are working correctly.
Tom CieslikIT Engineer
Distinguished Expert 2017

Commented:
Try to delete this share and create it from scratch, then assign same rights to users and groups (share rights and security rights)..
Maybe you have some error in server metadata fields you don't know about.
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
I would also check your server settings if you have so many new computer problems.

Author

Commented:
Tom,

I can try that when everyone is off (there are 21 people accessing files currently). How could I go about setting up a .bat to add to startup if the net use will not work for this share? The share  that they connect to, ends in &G so when I try to do it with the net use command I get 'g is not recognized as an internal or external command'. Patrick had suggested using quotes in the path, how would this work?
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
Let us know. For us, the style of network mapping does not cause shares to lose connection or not be there on restart

Commented:
Instead of manually mapping the drive or a login script. You could try creating a group policy for these users to map the drive. sometimes this is more resilient than a regular map.  With GP you can also change the name of the map drive that will appear on windows. So you might be able to test the G& theory.
Technical Specialist
Awarded 2017
Distinguished Expert 2018
Commented:
I would do away with the script and use Active Directory User Map Drive Preferences if you have AD

61.png62.png
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
Do you have Active Directory?
Did you make any progress with this?

Author

Commented:
thanks
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
Glad we could help.

@OP, experts and future visitors:
Please remember to endorse my, or any other expert's comments that you found helpful by clicking on the "Thumb's Up" button

Read more on endorsements
https://www.experts-exchange.com/discussions/218503/What-are-Endorsements.html

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