netsh errors setting remote computer to dhcp

  • Thread starter Thread starter LetUsPrey
  • Start date Start date
L

LetUsPrey

I am trying to set a few remote computers from static address to DHCP
using netsh.

I use the following command:

netsh -r remotemachine interface ip set address "Local Area Connection"
dhcp

but the command errors out with:

Error obtaining configuration for interface Local Area Connection.

I'm stumped as to what this error is caused by and haven't been able to
find any information on it.
 
LetUsPrey said:
I am trying to set a few remote computers from static address to DHCP
using netsh.

I use the following command:

netsh -r remotemachine interface ip set address "Local Area Connection"
dhcp

but the command errors out with:

Error obtaining configuration for interface Local Area Connection.

I'm stumped as to what this error is caused by and haven't been able to
find any information on it.

Instead of executing the command from your own machine, try
running it on the remote machine with psexec.exe (www.sysinternals.com).
 
This solves the problem. Thanks. I guess it would be safe to assume
that remote netsh is broken in some way?
 
Not really. There could be lots of reasons why your command
failed, e.g. some registry setting in the remote machine that
prevents netsh from doing its job when executed non-locally.
 
Back
Top