netsh interface ip set address "Ethernet" static 192.168.1.100 255.255.255.0 192.168.1.1 To set DNS (example: Cloudflare’s 1.1.1.1):
ipconfig /all To disable an adapter (replace "Ethernet" with your adapter’s exact name):
netsh interface set interface "Ethernet" disable To enable it:
In the left pane, click Change adapter settings .
Open Control Panel . (Type "Control Panel" in Windows search and select it).