Re: netsh and DHCP server

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Shenan Stanley (news_helper_at_hushmail.com)
Date: 01/07/05


Date: Fri, 7 Jan 2005 13:19:45 -0600

Stephen Fralich wrote:
> If you type netsh /?, it says netsh has -u and -p options, username
> and password respectively. It also as a -r option to execute netsh
> commands on a remote server. Logged in as a non-domain user on a
> remote machine, I want to be able to make changes to DHCP. I've
> tried the following:
>
> netsh -r adserver -u domain\administrator -p password dhcp server
> show version netsh -u domain\administrator -p password dhcp server
> \\adserver show version
>
> Both of these produce:
> Unable to determine the DHCP Server version for the Server
> 192.168.2.2. Server may not function properly.
>
> No matter what commands you send to the DHCP server, it always
> returns the above error.
>
> You can execute both the commands below successfully using runas:
> netsh -r adserver dhcp server show version
> netsh dhcp server \\adserver show version
>
> I need to execute commands using a script though, so runas won't
> help. I found a freeware program called CPAU (runas with password
> commandline option), but it doesn't pass errors back through. Even
> if you have the wrong password it exits 0 and returns "Command
> completed successfully."
>
> Any suggestions about how to make netsh work properly remotely? Any
> other ideas about how to accomplish what I want would be appreciated
> as well. Thanks.

PSEXEC from sysinternals.

-- 
<- Shenan ->
-- 
The information is provided "as is", it is suggested you research for
yourself before you take any advice - you are the one ultimately
responsible for your actions/problems/solutions.   Know what you are
getting into before you jump in with both feet. 


Relevant Pages

  • netsh and DHCP server
    ... If you type netsh /?, it says netsh has -u and -p options, username and ... Unable to determine the DHCP Server version for the Server 192.168.2.2. ... No matter what commands you send to the DHCP server, ... You can execute both the commands below successfully using runas: ...
    (microsoft.public.windows.server.scripting)
  • Re: IE6 Stops Working, Emails, Ping, Other ports just fine
    ... Why do you think that there would be an HTTP server there ... Did you experiment at all with those netsh commands I mentioned? ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: IE6 Stops Working, Emails, Ping, Other ports just fine
    ... Why do you think that there would be an HTTP server there ... Did you experiment at all with those netsh commands I mentioned? ...
    (microsoft.public.win2000.networking)
  • Re: [SLE] DHCP-server and leases
    ... > Then I stopped the server, manually edited the lease ... dhcpd.leases~ which the dhcp server resorts to if it thinks the ... Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com ...
    (SuSE)
  • RE: RPc server is unavailable since SP1
    ... After these commands run successfully, ... RPc server is unavailable since SP1 ... >> when the member server update certificate you get the error message RPC ... >> interface security settings before the installation of SP1 will be lost. ...
    (microsoft.public.windows.server.sbs)