16-02-2014, 06:19 AM
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:
4) Set IP to DHCP:
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
Code:
netsh interface ip set address "Local Area Connection" source=dhcp