Solved

Mapped Drive Disconnecting frequently

Posted on 2011-03-14
6
724 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
  • 3
  • 3
6 Comments
 
LVL 31

Expert Comment

by:DrUltima
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:DrUltima
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

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:
DrUltima earned 500 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Learn about cloud computing and its benefits for small business owners.
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now