remothly change IP configuration with netsh


O

Omar

under technet I found a text named configurin Windows 2000
networking components release on November 2001, this doc
speaks about the netsh command and on the end of the text
it have a subtitle named Remote configuration here says
that there is a way to change the ip configuration of a
worstation or server remotly, I try to follow this but
is't works the sintaxis that I'm using is:

netsh -r 10.113.3.0 int ip set add "Local Area Connection"
static 10.113.2.115 255.255.252.0 10.113.0.1 2

I try on this machine and other with the DHCP
configuration enabled and doesn't work too.

This is a very interesting tool because I can change all
my network to a static IP network or to a DHCP so I whant
to know if this is still posible with netsh command.

Thanks for your help and support.

Have a nice day.
 
Ad

Advertisements

J

Jerold Schulman

under technet I found a text named configurin Windows 2000
networking components release on November 2001, this doc
speaks about the netsh command and on the end of the text
it have a subtitle named Remote configuration here says
that there is a way to change the ip configuration of a
worstation or server remotly, I try to follow this but
is't works the sintaxis that I'm using is:

netsh -r 10.113.3.0 int ip set add "Local Area Connection"
static 10.113.2.115 255.255.252.0 10.113.0.1 2

I try on this machine and other with the DHCP
configuration enabled and doesn't work too.

This is a very interesting tool because I can change all
my network to a static IP network or to a DHCP so I whant
to know if this is still posible with netsh command.

Thanks for your help and support.

Have a nice day.


See tip 2279 in the 'Tips & Tricks' at http://www.jsiinc.com

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
O

Omar

Thanks Jerol I use this localy and there is no problem,
the issue is that NETSH command it haves the option to
remotly connect to any other computer the command is:
netsh , then under the netsh console I type:
set machine <PC name>
then I get the prompt: [PC name] netsh> here is where I
suppost can I change the IP or any network configuration
because if I use this under the remote machine the
changes are applied to the remote computer not the local
one using this command.

I found this in the next TechNet note, from a Cable Guy on
November 2001:

Remote configuration
One of the most useful aspects of Netsh is the ability to
remotely configure computers running Windows 2000. You can
indicate the computer to remotely configure by either
specifying the -r RemoteMachine command-line option or
using the set machine global Netsh command. In both cases,
you can specify a remote computer with a NetBIOS name, a
UNC name, a DNS domain name, or an IP address in dotted
decimal notation.

To run the commands on a remote computer, you must have
administrator permissions on the remote computer. You must
be logged on with a user account that is a member of the
Administrators group on the remote computer. Alternately,
you must have an existing connection to the remote
computer that uses a user account that is a member of the
Administrators group on the remote computer.

When you use the set machine command to specify the remote
computer, the netsh command prompt changes to indicate the
name or IP address of the remote computer on which
commands are run. Here is an example:

netsh>set machine 157.59.138.21
[157.59.138.21] netsh>interface


You can configure multiple remote computers with the same
script file by beginning each set of commands to be run on
a remote computer with the appropriate set machine
command.

Some commands, such as those in the aaaa context, cannot
be remotely executed. To reset Netsh back to the local
computer, issue the set machine command without any
parameters.
 
Ad

Advertisements

G

Guest

Hi
The Full Command is
netsh -r \\pc-mv interface ip set address name="LAN" dhc
The Name must be the real Name from the Network Connection
Before you change it, you must be connect to the remote Machine as an Adminstrato
on C$, IPC$, Admin$ or anything else
If you change the Settings to DHCP, your Network Connection will be Lost, cause of the new IP-Address
It is recommend to control the Lan Settings before if you have new WINS or DNS

Greets, Frank
 
Ad

Advertisements


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