Networking Forums

Networking Forums > Computer Networking > Windows Networking > netsh problem

Reply
Thread Tools Display Modes

netsh problem

 
 
Morten
Guest
Posts: n/a

 
      04-22-2005, 09:55 AM
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


 
Reply With Quote
 
 
 
 
Arek Iskra [MVP]
Guest
Posts: n/a

 
      04-22-2005, 12:45 PM
"Morten" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>


Try executing it with psexec from Sysinternals and see how it goes.

--
Arek Iskra
MVP for Windows Server - Software Distribution


 
Reply With Quote
 
Morten
Guest
Posts: n/a

 
      04-25-2005, 07:58 AM
I was hoping to be able to rely on standard MS tools...

Best regards

Morten

"Arek Iskra [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Morten" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
>>
>>

>
> Try executing it with psexec from Sysinternals and see how it goes.
>
> --
> Arek Iskra
> MVP for Windows Server - Software Distribution
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
netsh Mario Windows Networking 0 02-11-2009 08:29 PM
netsh Mario Windows Networking 0 02-11-2009 08:27 PM
remote use of NETSH Blake Windows Networking 2 07-18-2008 02:19 PM
netsh charleh \(moif\) Windows Networking 2 04-13-2005 09:34 PM
netsh firewall Aaron Parker Windows Networking 1 12-11-2003 08:36 AM



1 2 3 4 5 6 7 8 9 10 11