Solved

Force a network adapter to reclassify connection

Posted on 2014-04-22
8
537 Views
Last Modified: 2014-06-05
When I boot a machine on my network it fails to contact the DNS server within the environment. This causes the network adapters on the machine to be classified incorrectly as public rather than domain.

I have been manually working around this by enabling - disabling - enabling a network adapter once the machine has started which forces the network classification to reassess - which this time successfully establishes the network adapter on the domain.

What I want to know is if there is a way I can force the network to reclassify the connection - i.e. the automated equivelent of the above process. I dont really want to develop a new script for this purpose I am hoping there is a command around that will do the job.
0
Comment
Question by:Blowfelt82
  • 4
  • 3
8 Comments
 
LVL 92

Expert Comment

by:John Hurst
ID: 40015081
Can you delete the wired profile?

In an admin command window, netsh lan show profiles shows the wired profiles.

Netsh lan delete profile name="profilename" should delete the wired profile. Restart and allow Windows to make a new wired connection.

Use netsh /? to see all the possible commands.

You can also try netsh int ip reset c:\resetlog.tx to reset TCP/IP. Follow this with a restart also.

Also, ipconfig /flushdns followed by net stop dnscache followed by net start dnscache  to flush DNS.
0
 

Author Comment

by:Blowfelt82
ID: 40015135
Unfortunately this is a problem that gets recreated every time I reboot, so not too keen on using a reboot to reset the changes.. I have played around with netsh but no luck so far
0
 
LVL 92

Expert Comment

by:John Hurst
ID: 40015156
What version of Windows?  Windows 7 I presume (XP is dead).

Try running System File Checker. Open cmd.exe with Run as Administrator and run SFC /SCANNOW.  Allow to complete, restart the computer and test again.

Something or someone may have damaged the operating system, so another thing you can try is Windows Repair Install. Below is a Seven Forums tutorial to assist with this.

http://www.sevenforums.com/tutorials/3413-repair-install.html
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 37

Expert Comment

by:bbao
ID: 40017452
better follow below the official steps to reset TCP/IP stack on your computer.

How to reset TCP/IP by using the NetShell utility
http://support.microsoft.com/kb/299357
0
 

Author Comment

by:Blowfelt82
ID: 40053114
Sorry for the late reply!

This error happens after a fresh install of the environment every time, so I dont think something has become corrupted along the way. I have found that adding and deleting a network route has the same effect - but this relies on knowing the IP address of a NIC which is a hassle. Ideally I would like to know what is the underlying cause of this issue?
0
 
LVL 92

Accepted Solution

by:
John Hurst earned 500 total points
ID: 40053238
This error happens after a fresh install of the environment every time, so I don't think something has become corrupted along the way

There must be something wrong with the server setup. Windows workstations (from whenever to now) do not have this problem on a fresh install.  Windows 7 (and possibly Vista) and later need to be told to use the Domain setup in the network connection. But that is normally automatic when joining a Domain and does not change thereafter on a properly working machine.
0
 

Author Closing Comment

by:Blowfelt82
ID: 40115103
You were right the problem was due to dodgy DNS settings. So problem solved - thanks for you time my silly mistake.
0
 
LVL 92

Expert Comment

by:John Hurst
ID: 40115126
@Blowfelt82  - Thanks for the update and I was happy to help.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

813 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