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.
Windows 10Windows Server 2012PC

Avatar of undefined
Last Comment
Shaun Vermaak

8/22/2022 - Mon
John

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 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
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'.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Patrick Bogers

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.
zelfanet

ASKER
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.
John

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
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Tom Cieslik

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.
zelfanet

ASKER
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...
John

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 started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
zelfanet

ASKER
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.
John

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.
zelfanet

ASKER
John,

This happens on pcs with different os's and different manufacturers. Im glad your computers are working correctly.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Tom Cieslik

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

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

ASKER
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?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
John

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

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
Shaun Vermaak

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Shaun Vermaak

Do you have Active Directory?
Did you make any progress with this?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
zelfanet

ASKER
thanks
Shaun Vermaak

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