howtothings.co.uk

Full Version: Set a machine to use DHCP using netsh remotely via command prompt
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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