remote netsh command


G

Guest

I am trying to use netsh to update IP addresses and DNS servers on all Pcs on
my network. When I enter the -r option and specify a remote computer, I get
a "command not found" when I enter anything past the "interface/ip" section
of netsh. Once I reach the ip section of netsh, the set command does not let
me specify anything, only lets me connect to another machine, load a file, or
change the operating mode.

Anyone know if this is by design or a simple problem I can work around.
Here are the commands I'm trying to run


netsh -r computername interface IP set dns "local area connection" static
10.10.10.X primary

I get a command not found. This command works great when run locally, but
says it can't find the command when running in remote mode on another
machine.

Any ideas?

Thanks
 
Ad

Advertisements

G

Guest

Is there a restriction on the netsh command that limits what you can do
remotely? Let me clarify my problem. Based on the commands in my original
post, I want to remotely change the IP address of a machine on my network, I
also want to set the subnet, gateway and two dns servers. I can do all of
this locally with netsh. But with the -r option or set machine name at the
command line, I get stopped at the interface ip level. Any command entered
after IP gets me nowhere. Its like the set command is being restricted in my
remote connection. Again this all works fine locally, but only have problems
when I try this remotely. All machines are on the same network, part of an
NT4 domain. The user account we are doing this under is administrator on all
machines. Not sure why this is happening. Is this by design? Are there
meant to be restrictions on what netsh can do remotely?

Thanks
 

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