Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to configure the LAN settings of a Windows 2008 server remotely via netsh. I've been trying this command (issued at the client) assuming the IP address of the server is

netsh -r  -u\Administrator -p password lan show config

but I keep getting the following message:

WARNING: Could not obtain host information from machine []. Some commands may not be available.

The RPC server is unavailable.

Am I understanding the command above properly? Is there a step or two that I missed in setting this up?

Thanks in advance.

P.S. The Routing and Remove Access service on the server is enabled.

share|improve this question

migrated from Sep 29 '09 at 0:22

This question came from our site for professional and enthusiast programmers.

If routing and remote access is enabled and you're still getting an RPC error it may be the OS' firewall at play. I vaguely remember something like this when messing with Server Core installs. If you have physical access to the server, just to test, try

netsh advfirewall set allprofiles state off

And try the command again.

If that fixes it then you'll need to punch a hole in the firewall for the RPC server (port 135 if I'm not mistaken).

share|improve this answer

I'm also looking for a similar solution. has anything ever been found for this?

I need to be able to change the IP address, gateway and DNS server information on a group of remote servers. It appears that netsh should support this, but I'm having the same problems as the original poster -- I'm receiving the message that "some commands may not be available".

share|improve this answer

Ensure that "File and Printer Sharing for Microsoft Networks" is enabled in your network connection properties.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.