Windows Loses Network Settings

Jon Mercer 966 Reputation points
2022-06-14T18:48:56.067+00:00

I have kind of an odd one. We are using OpenVPN and have a batch file that is run to setup the DNS for split tunneling. The odd issue is, is that for a couple people, the DNS information will vanish. It is still checked to use static DNS, which can not be done through windows, since it won't allow just the option to be checked without numbers.

They are all Windows 10 with the latest feature update connected to a DC, and then linked to Azure through Azure AD Connect. We can't migrate to pure Azure currently. There isn't any type of GP or InTune policy setup that changes network settings, though I am getting tempted to add this batch file to GP or InTune.

The only real difference I can find is that they are under a domain user account, and I am an admin on my system.

The batch file is pretty basic.

echo off

netsh interface ipv4 add dnsservers "Local Area Connection" 10.X.X.X index=1 validate=no
netsh interface ipv4 add dnsservers "Local Area Connection" 10.X.X.X index=2 validate=no
netsh int ip set interface interface="Wi-Fi" metric=15

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,271 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,351 Reputation points
    2022-06-15T15:26:51.943+00:00

    Hi there,

    Check your Firewall configuration and check ports are open using portquery tool.

    If DNS Scavenging is misconfigured you can face this issue.

    The Scavenging feature on one or more DNS Servers was configured to have overly aggressive settings and is prematurely deleting DNS records for AD-integrated DNS zones.

    The below thread discusses the same issue and you can try out some troubleshooting steps from this and see if that helps you to sort the Issue.

    https://social.technet.microsoft.com/Forums/lync/en-US/4ba67b5e-18e1-4351-8e06-97a8a59ac1d7/static-dns-records-disappearing?forum=winserverNIS

    -------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--