netsh -r

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to add DNS to several remote systems that reside on Workgroups.
The command appears to work (I am returned to a prompt with no error
messages), but when I go to check, the DNS is still empty. The following
syntax looks right:

netsh -r xxx.xxx.xxx.xxx interface ip add dns 10.254.3.3

Is this not correct? Thanks in advance,
DI
 
DI said:
I am trying to add DNS to several remote systems that reside on Workgroups.
The command appears to work (I am returned to a prompt with no error
messages), but when I go to check, the DNS is still empty. The following
syntax looks right:

netsh -r xxx.xxx.xxx.xxx interface ip add dns 10.254.3.3

Is this not correct? Thanks in advance,
DI


It's been a while since I used this, but according to the syntax you're
missing the name of the network connection, which is usually "Local Area
Connection".


C:\>netsh.exe interface ip add dns

Usage: add dns [name=]<string> [addr=]<IP address> [[index=]<integer>]

Parameters:

Tag Value
name - The name of the interface where DNS servers are added.
addr - The IP address for the DNS server you are adding.
index - Specifies the index (preference) for the specified
DNS server address.

Remarks: Adds a new DNS server IP address to the statically-configured list.
By default, the DNS server is added to the end of the list. If an
index is specified, the DNS server will be placed in that position
in the list, with other servers being moved down to make room.
If DNS servers were previously obtained through DHCP, the new
address will replace the old list.

Examples:

add dns "Local Area Connection" 10.0.0.1
add dns "Local Area Connection" 10.0.0.3 index=2
 
I forgot to type that in the message, but I am adding it and it is not
working. I believe the problem is administrative access on the remote PC.
Would you know of a way to gain administrative access to a remote PC through
a command prompt?
Thanks again,
DI
 
DI said:
I forgot to type that in the message, but I am adding it and it is not
working. I believe the problem is administrative access on the remote PC.
Would you know of a way to gain administrative access to a remote PC through
a command prompt?
Thanks again,
DI

You could try opening a pipe with NET USE, something like this:

net.exe use \\xxx.xxx.xxx.xxx\ipc$ password /user:domain\user

or to specify a local account:

net.exe use \\xxx.xxx.xxx.xxx\ipc$ password /user:xxx.xxx.xxx.xxx\user

or to be prompted for the password:

net.exe use \\xxx.xxx.xxx.xxx\ipc$ * /user:domain\user
 
Back
Top