I have been assigned the task of creating an application that takes in a MAC address and creates a DHCP reservation for that MAC address. Is there any API built into .NET to easily accomplish this?
Programmatically Create DHCP Reservation in C#
2.7k Views Asked by Matt At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in DHCP
- Nmap does not show DHCP server, no errors
- Best way to add support for a new subnet
- get a DHCP server's IP
- Can't Parse DHCP packets with Ryu's get_protocol(dhcp.dhcp)
- Cannot integrate Windows10 in my local network - pulls IP address outside of DHCP range
- How can I override another .bbappend
- Calculate subnet with few unused addresses
- Code to Change the TCP/IP configuration of the computer to DHCP
- 1 script to switch to and from static IP or DHCP
- Photos are not showing up when using No-IP ddns and linux apache
- DHCP server issues
- Android: How to prevent a Wifi disconnect on DHCP renewal?
- powershell - trying to use split method to isolate the number "50" from the returned value "Free : 50"
- DhcpEnumFilterV4 (P/Invoke) always reports ERROR_NO_MORE_ITEMS
- Python dhcp packet using raw socket
Related Questions in MAC-ADDRESS
- Regex matching MAC address
- Get MAC address of NIC that has the default route
- NodeJS - get MAC address when offline
- programmatically change Mac address-Android
- getmac ERROR: Invalid Class (Windows 8.1)
- Is it possible to track mac address of client with PHP code. If yes how and if no why?
- Detecting wi-fi or cable network interface by mac address
- IP from MAC Address of a computer not in my network(remote)
- Get ethernet router MAC address in android
- Mac Id is coming same in 2 PCs while using C#
- Get ipconfig result with python in windows
- In my iOS application, the user has to register their `unique device` for full access of the app which remains same even after reinstallation
- How to locate specific mac address using python
- What is the difference between a physical address and MAC address in networking?
- How to run a command to use data from a txt file to execute them one by one smartly
Related Questions in NETSH
- Batch File get Specific IP into Variable
- Bind multiple certificates on a port in Windows server
- Python list of lists from CMD output
- netsh result to a PowerShell object
- Set proxy through windows command line including login parameters
- Pass netconnectionid to a netsh interface command in batch
- netsh command returning unrecognized error, unknown reason
- NETSH Command in Windows 7
- Get output of "netsh dhcp server ..." command
- How can I do the same thing as "netsh trace start" when "capture=yes" specified by calling EnableTraceEx2?
- Windows 10 | regedit | exefile shell command (firewall add rule) - not running
- C# get bound of ssl server certificate
- Batch File issue, recieving "The Filename, Directory Name, Or Volume Label Syntax Is Incorrect"
- Command netsh using C#
- How to check if port or program is allowed in Windows 2008 firewall using netsh advfirewall commands
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
When I was writing apps for infrastructure there was a COM library called Dhcpobjs.dll in the Windows 2000 Resource Kit. This could be dynamically loaded by a VBScript using IDispatch like so:
I'd google [ CreateObject Dhcpobjs.dll ] and see what you get. You'd likely be able to add a reference to this lib from your VS project.
I'm surprised there's no managed library for simple Windows infra management. Also look in the TechNet script gallery on microsoft.com for other useful stuff.
Good luck,
Luke
EDIT: This may be of interest to people working or assigned similar duties:
Linq to Active Directory: http://linqtoad.codeplex.com/