Question

Server Win 2012 (not r2)

I want to replace some DHCP reservation's mac address only in a single scope. Preferably using a txt/csv and matching on PC name.

I was loooking at the DHCP options in powershell and it looks like i have to delete the Reservation and re-add it.

Does anyone know how I can replace the DHCP Reservation MAC address for an IP using 'Power-shell'?

Eg: ip=10.10.10.1 Name = Computer1` MAC = 00-01-02-03-04 change this value only 00-02-03-05-06

Thanks Roger

Was it helpful?

Solution

In Windows 2012+ there is a DHCP Server module for PowerShell. Check out this function:

Set-DhcpServerv4Reservation

A simple search for "dhcp server powershell" would have found you the module as the firs result, and "dhcp server reservation powershell" would even give you a blog with samples.. Please show some effort first.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top