How To Change Network Adapter | Settings In Windows 11
netsh interface ip set dns "Ethernet" static 1.1.1.1 To return to automatic (DHCP) IP and DNS:
ipconfig /all To disable an adapter (replace "Ethernet" with your adapter’s exact name): how to change network adapter settings in windows 11
netsh interface set interface "Ethernet" disable To enable it: netsh interface ip set dns "Ethernet" static 1