Skip to main content

Searching Windows Server DHCP via MAC Address

·214 words·2 mins
system-administration tech dhcp sysadmin technology windows-server
James Pettigrove
Author
James Pettigrove
Cloud Engineer with a focus on Microsoft Azure

There comes a point when you ask yourself, ’there has to be a better way’ (this should be often). This was certainly the case where after a large campus switch out which required many printers to be reconfigure. Part of that reconfiguring was creating new DHCP reservation.

Unfortunately, if you do not cull the old lease, Windows (rightfully so) informs you there is already a device with that MAC in the reservation database. In someone’s at Microsoft’s infinite wisdom, they neglect to tell you what DHCP scope the device is currently reserved in. So I would begin to trawl each scope I guessed in maybe reserved in based on my knowledge of our current scopes. This would waste many minutes of my time (sometimes without success) which means my customers are getting less of me. No good.

But, I did ask myself, ’there has to be a better way’…and there is!

Open up a command prompt window on your DHCP server (or a remote powershell session) and input the following:

netsh dhcp server dump | find /i"MACADDRESS"

All you need is the MAC address of the device and input it without ‘-’ in the MACADDRESS space and you should get something a little like the below:

Another time saver for the time poor SysAdmin

Related

RSAT for Windows 10 released
·84 words·1 min
system-administration tech rsat sysadmin technology windows-10 windows-server
For those who are running the latest build of Windows 10 Technical Preview and want to manage your Windows 10 Server Technical Preview and below servers head on over to the link to get the latest iteration of the Remote Server Administration Tools.
Windows Server & System Center Technical Preview
·216 words·2 mins
system-administration tech sysadmin system-center technology windows windows-10 windows-server
Hot on the heels of the Windows 10 Technical Preview release, Microsoft have now added the Windows Server and accompanying System Center Technical Preview for the masses.
Disable Network Adapter's Dynamic DNS Registration via Registry
·235 words·2 mins
system-administration tech dns regedit registry sysadmin technology windows-server
There are numerous reasons why DNS is amazing, it makes it a hell of a lot easier to navigate IP devices, it’s one tool to make your data centre flexible and elastic and is friendly to the eye (for those whom English is fluent).