Can't set DNS

fujitron

New Member
Hello, im making an unattended W10 iso and need to config DNS but i having problems.

I added in post-instalation a cmd command to do it, but is not working, it looks is a problem with cmd not running as admin i guess. I readed about tick OEM option on unattended tab but not working either.

Tried using this commands:

netsh interface ipv4 add dns "Ethernet" address=8.8.8.8 index=1
netsh interface ipv4 add dns "Ethernet" address=8.8.4.4 index=2

wmic nicconfig where (IPEnabled=TRUE) call SetDNSServerSearchOrder ("8.8.8.8", "8.8.4.4")

This 2 ways work perfect if i use it on my comp with cmd as admin but not working on my iso.

I thought about using a Bat file but cant use it as admin either...,So i dont know if theres is a way to solve this...

Thanks in advance.
 
Post-Setup actions run as SYSTEM (same rights as Admin).

1. Check your interface is actually named "Ethernet", and not "Local Area Network" or something else.
2. Check your command is "netsh", followed in 2nd column by "interface ipv4 add dns..." and not one long string in the 1st column.
 
Back
Top