Hi Matt,

1) Please open regedit.exe and click to:

HKEY_LOCAL_MACHINE\SOFTWARE\System\CurrentControlSet

Are you sure this is a legit path?

2) RegyKey deletes a registry key. Usually we check values (RegyValue) whithin a key, e.g. in "DhcpServer"

Deleting an network interface will probably kill all the network settings.

3) One call of TCPIPAddress should be enough. "NameServer" and "<alternative>" is one IP or a comma separated IP list.
TCPIPAddress should also dissolve the issue in 2.

Kind regards,
Roberto.