I'm trying to set DNS (both primary and secondary) for a network adapter using command prompt. So I created a windows shortcut with the following command:
C:\Windows\System32\netsh.exe interface ipv4 add dnsservers "Ethernet" address=188.8.131.52 index=1 & C:\Windows\System32\netsh.exe interface ipv4 add dnsservers "Ethernet" address=184.108.40.206 index=2
but for some reason it's not working (neither giving any error). If I execute this command directly in command prompt, it works! Needless to say, I'm running the shortcut as admin, so it isn't any permission issue. However, I can't figure out what it is. Am I missing something?
Any help will be really appriciated. Thanks!