Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

C# and DHCP help me please

Posted on 2010-09-12
3
Medium Priority
?
947 Views
Last Modified: 2012-05-10
I have a problem.I want to reservedip IP for client from anthor computer (from web server).


First i have DC(winserver 2003) computer domain is reg-mac.com with DHCP services.

Second : I have WebServer (winserver 2003-IIS6-DOT NET 2.0).

Finally : I have Active Directory accout RegMac  with granted permission in DHCP Administrator group.


In DC computer i log on with RegMac account,and use command 'netsh dhcp server \\10.22.1.210 scope 10.22.10.0 add reservedip 10.22.10.17 001e650236a6 test test' it work.


but i want use above command with RegMac account on webserver . How to do it ????

Does Anyone know ,or give me solution ?

Thank
0
Comment
Question by:tungdt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
Krzysztof Pytko earned 1000 total points
ID: 33659997
You can use PsExec from SysInternals (http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx) and use this syntax

psexec \\WebServer_Name -u RegMac -p RegMac_Password netsh "dhcp server \\10.22.1.210 scope 10.22.10.0 add reservedip 10.22.10.17 001e650236a6 test test"

It should solve your problem
0
 

Author Closing Comment

by:tungdt
ID: 33673143
Thank for your solution
0
 
LVL 39

Expert Comment

by:Krzysztof Pytko
ID: 33674472
You're welcome
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

664 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question