Hi, Cyrus Hosmer
This is Chaboon.
Wouldn't it be better to try using powershell instead of a bat file?
And you use Startup Script via Group Policy, the command execute Administrative privileges.
See below the article (see Example1)
https://learn.microsoft.com/en-us/powershell/module/dnsclient/set-dnsclientserveraddress?view=windowsserver2022-ps
You can use the InterfaceAlias option instead of the InterfaceIndex option.
The InterfaceAlias option allows you to specify a network friendly name (for example, Ethernet 1) instead of an index number.