netsh errors setting remote computer to dhcp


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.
 
Ad

Advertisements

P

Pegasus \(MVP\)

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).
 
L

LetUsPrey

This solves the problem. Thanks. I guess it would be safe to assume
that remote netsh is broken in some way?
 
Ad

Advertisements

P

Pegasus \(MVP\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top