Hi!
I'm trying to change the primary DNS server on some of our servers remotely
using netsh.
I'm able to change the address just fine on a local server if I use:
netsh interface ip set dns "Local Area Connection" static 10.0.0.1 primary
However if I try:
netsh
set machine remoteserver
interface ip set dns "Local Area Connection" static 10.0.0.1 primary
it tells me that the command is not available. If I try:
netsh
set machine remoteserver
interface ip
and type "set"
it gives me these choices:
set file - Copy the console output to a file.
set machine - Sets the current machine on which to operate.
set mode - Sets the current mode to online or offline.
These however are apparently not available:
set address - Sets the IP address or default gateway to the specified
interface.
set dns - Sets DNS server mode and addresses.
set wins - Sets WINS server mode and addresses.
(But they are available when I use them directly on the remote server via
RDP).
I've opened the command prompt on the server that I'm executing the commands
from as a user who's a member of the administrator group on both the local
and the remote server. I assume that that gives me sufficient permissions -
or? The servers are NOT part of a domain and they're both Windows Server
2003 Standard Edition.
Thanks in advance for your help.
Morten
|