Windows Loses Network Settings

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

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.
1,933 questions
No comments
{count} votes

1 answer

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

    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.


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