Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Mapped Drive Disconnecting frequently

Posted on 2011-03-14
6
Medium Priority
?
741 Views
Last Modified: 2012-05-11
I am currently using a batch script to map network shared drives for network users. Here is a sample of the command(s) in use.
NET USE W: \\MainServer\GroupShare /Persistent:YES

However, the mapped drive keeps disconnecting.

The issue appears to be on branch office client computers.

WAN Settings:
IP: XX.XX.XX.XX/24

Lan Settings:
IP: 192.168.3.x/24
DNS1: 192.168.1.5
DNS2: N/A

Router provides DHCP and DNS which connects to corporate office via VPN (192.168.1x/24, DNS 192.168.1.5).

When I enter the DNS setttings manully in to IPV4 DNS settings there are no issues. But when I let the the router provide automatically thats when I run into problems.

The problems lies on other branch offices too, and not just one office in particular.

What steps can I take to troubleshoot the disconnection of the map drive, and DNS settings.

What is best practice to configure branch offices via vpn connection.
0
Comment
Question by:oadmhernandez
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 31

Expert Comment

by:Justin Owens
ID: 35131541
I am assuming your DNS1 is an internal, AD aware DNS Server.

I am not sure what you mean by this statement:  

When I enter the DNS settings manually in to IPV4 DNS settings there are no issues. But when I let the the router provide automatically that's when I run into problems.

Would you mind clarifying for me?  Knowing a little more would be helpful:

1) Does your enterprise utilize DHCP?  If so, are the DNS settings universal or site specific?
2) Do you branch offices have a DC or RODC for authentication, or does your main office handle all AD authentication?  If yes to remote DCs, are Sites correctly configured in AD?

DrUltima
0
 

Author Comment

by:oadmhernandez
ID: 35131692
I am assuming your DNS1 is an internal, AD aware DNS Server.

I am not sure what you mean by this statement:  


When I enter the DNS settings manually in to IPV4 DNS settings there are no issues. But when I let the the router provide automatically that's when I run into problems.

Corporate Office holds AD/DC/DNS/DHCP. The DHCP has a scope of 192.168.1.x/24 (for corporate office only). DNS1: 192.168.1.5 (DC/AD).

As for the Branch Office the SonicWall Pro1260 Router Provides DHCP and DNS Settings(192.168.1.5)  and DHCP scope 192.168.3.x/24

When I leave the client pc to obtain DNS server address automatically I get constant map drive disconnects. However, if I manually enter the DNS servers (corporate) it works fine.


1) Does your enterprise utilize DHCP? YES  If so, are the DNS settings universal or site specific? all branch offices look to DNS1 = 192.168.1.5 (located at corporate office)

2) Do you branch offices have a DC or RODC for authentication, or does your main office handle all AD authentication?  Main Office handles all AD authentication, we are connected via vpn.
If yes to remote DCs, are Sites correctly configured in AD?

0
 
LVL 31

Expert Comment

by:Justin Owens
ID: 35131789
So, at your remote site in which your SonicWall provides DHCP addressing, please do (when using DHCP) an

IPCONFIG /all

Let me know what any DNS server addresses are.  Often times a SonicWall is not correctly issuing DNS due to error or misconfiguration.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:oadmhernandez
ID: 35131885
I think I found the culprit. I believe a server that was once connected to our network functioned as a second DNS. It was turned off for a while because it was not needed. About a month ago we moved offices and the server was turned ON and I believe this is what is causing the issue. I will keep you posted. I ran cmd gpupdate /force and received the following message.

C:\Windows\system32>gpupdate /force
Updating Policy...

User policy could not be updated successfully. The following errors were encount
ered:

The processing of Group Policy failed. Windows could not resolve the user name.
This could be caused by one of more of the following:
a) Name Resolution failure on the current domain controller.
b) Active Directory Replication Latency (an account created on another domain co
ntroller has not replicated to the current domain controller).
Computer policy could not be updated successfully. The following errors were enc
ountered:

The processing of Group Policy failed. Windows could not resolve the computer na
me. This could be caused by one of more of the following:
a) Name Resolution failure on the current domain controller.
b) Active Directory Replication Latency (an account created on another domain co
ntroller has not replicated to the current domain controller).

0
 
LVL 31

Accepted Solution

by:
Justin Owens earned 2000 total points
ID: 35132017
Looks like it was also a Domain Controller.  If this is the case, it will, indeed, cause all kinds of grief, especially if it was turned off longer than your tombstone.  I would recommend demoting it to a member server, and if that fails (which it well may), physically disconnecting and then force demoting the server and force removal of the server from AD metadata.  If you need help with any of these steps, let me know....

DrUltima
0
 

Author Closing Comment

by:oadmhernandez
ID: 35157290
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn about cloud computing and its benefits for small business owners.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question