Solved

C# and DHCP help me please

Posted on 2010-09-12
3
933 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 250 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

740 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