howtothings.co.uk
Set a machine to use DHCP using netsh remotely via command prompt - Printable Version

+- howtothings.co.uk (https://www.howtothings.co.uk)
+-- Forum: Computing (https://www.howtothings.co.uk/forumdisplay.php?fid=4)
+--- Forum: Hardware, Networking and Wireless (https://www.howtothings.co.uk/forumdisplay.php?fid=11)
+--- Thread: Set a machine to use DHCP using netsh remotely via command prompt (/showthread.php?tid=1375)



Set a machine to use DHCP using netsh remotely via command prompt - Mark - 16-02-2014

Set a machine to use DHCP using netsh remotely using a command prompt

1) psexec \\computerip -u domain\administrator cmd
2) See current config: netsh interface ip show config
3) Set DNS to DHCP:
Code:
netsh interface ip set dns "Local Area Connection" dhcp
4) Set IP to DHCP:
Code:
netsh interface ip set address "Local Area Connection" source=dhcp