Using PowerShell to Investigate Duplicate IP Address Issues that were issued from a Microsoft based DHCP Server

Over the past couple of weeks, you’ve received several support calls about duplicate IP Address issues from users whose machines receive their IP Address from your organizations internal Microsoft based DHCP Servers.

The users who reported the issues use thin clients and when the IP Address conflicts occur they receive a popup message containing their IP Address and the MAC Address of the machine that duplicated the IP Address.

You and your staff need to retrieve additional information about the IP Address and MAC Address that the users received in order to try to determine what’s causing the problem.

While this information could be obtained from the DHCP Servers using PowerShell one-liners, you’ve decided to write a function to simplify the process of obtaining this sort of information long term for you and for your staff.

Simply provide an IP Address or MAC Address and information about it is returned from the DHCP Server(s):

duplicate-ip1

To receive even more detailed information, pipe the results to the Select-Object cmdlet and select all of the properties:

duplicate-ip2

This function was tested from a Windows 8.1 workstation with the Remote Server Administration Tools (RSAT) installed and it was tested against a Windows Server 2012 R2 server and a Windows Server 2008 R2 server, both with the DHCP Server role installed.

This PowerShell function can also be downloaded from the TechNet script repository.

µ

Leave a Reply

%d bloggers like this: