netsh -r command to change nic to dhcp

  • Thread starter Thread starter Tim Guy
  • Start date Start date
T

Tim Guy

Id like to remotly run the following netsh commands:

interface ip set address name="Local Area Connection" source=dhcp
interface ip set dns name="Local Area Connection" source=dhcp
register=PRIMARY
interface ip set wins name="Local Area Connection" source=dhcp

Doing so remotly currently comes back and says "The follwing command was not
found:

Is it a no, no or have I got some security issues?

If it cant be done, can anyone suggest another way it can be done remotly
and on batch?

Tim
 
Try PSexec

psexec \\hostname -u username -p password netsh interface ip set address
"Local Area Connection" dhcp

this will probaly hang pcexec but will get the job done. to make it more
elegant call a batch file on the remote system
 
Back
Top