Link to home
Start Free TrialLog in
Avatar of zelfanet
zelfanet

asked on

pc loses drive mapping

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.
Avatar of John
John
Flag of Canada image

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.
Avatar of Patrick Bogers
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
Avatar of zelfanet
zelfanet

ASKER

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'.
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.
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.
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
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.
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...
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.
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.
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.
John,

This happens on pcs with different os's and different manufacturers. Im glad your computers are working correctly.
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.
I would also check your server settings if you have so many new computer problems.
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?
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.
ASKER CERTIFIED SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Do you have Active Directory?
Did you make any progress with this?
thanks
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