pc loses drive mapping


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.


Just realized it is all users, when they restart the drive goes away, even if they check, reconnect at signin.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)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 LindowsCommented:

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.

zelfanetAuthor 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'.
CEOs need to know what they should worry about

Nearly every week during the past few years has featured a headline about the latest data breach, malware attack, ransomware demand, or unrecoverable corporate data loss. Those stories are frequently followed by news that the CEOs at those companies were forced to resign.

Patrick BogersDatacenter platform engineer LindowsCommented:
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.
zelfanetAuthor 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)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 EngineerCommented:
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.
zelfanetAuthor 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)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.
zelfanetAuthor 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)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.
zelfanetAuthor Commented:

This happens on pcs with different os's and different manufacturers. Im glad your computers are working correctly.
Tom CieslikIT EngineerCommented:
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)Commented:
I would also check your server settings if you have so many new computer problems.
zelfanetAuthor Commented:

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)Commented:
Let us know. For us, the style of network mapping does not cause shares to lose connection or not be there on restart
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.
Shaun VermaakTechnical SpecialistCommented:
I would do away with the script and use Active Directory User Map Drive Preferences if you have AD


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shaun VermaakTechnical SpecialistCommented:
Do you have Active Directory?
Did you make any progress with this?
zelfanetAuthor Commented:
Shaun VermaakTechnical SpecialistCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.