Identify PCs on MAN that have a Static IP Address

We have a large number of sites (50+) with 1000's of PCs.
Some people have set a Fixed IP address for their PCs (mostly Windows 7)
We want to ensure that only DHCP is used.

How can I search across multiple subnets and find any PC that has a fixed IP address?

We just cant physically visit each PC. We want someway of scanning the subnets to find them.

Is this possible?



Check you DNS manager enteries, for each subnet, you will be able to see each PC with fix IP.

Regards



Check you DNS manager enteries, for each subnet, you will be able to see each PC with fix IP.

Regards



You could anable loggin on the DHCP server, to check which IPs were distributed by DHCP. After one day compare the DHCP log with the machines (IPs) online and the ones that does not have a DHCP server log entry have fixed IPs.

If a short service interruption in the network is ok, you can trigger new DHCP requests by all hosts, just by power down the switch for a few seconds. Afterwards windows re request the IP via DHCP if DHCP is enabled.



Emmanuel,
Im not sure what you mean.
I cant see any differences in the Windows DNS server entries between a PC with a fixed or DHCP address.

Andreas,
I had a look, and yes that will work.



I was hoping for a more automated way of doing this. Rather than trying to manually match IPs.

Ive decided that using PSEXEC from SysInternals to force a ipconfig /renew and outputting the results to a file will give me the information

psexec.exe -h \"IPADDRESS" ipconfig /renew >output.txt

A fixed IP will give me this result.

Windows IP Configuration

The operation failed as no adapter is in the state permissible for
this operation.

To do this right, I will create a batch file that will put the Host Name and IP address in the output first before the IPconfig /renew results.



Using PSEXEC means I can script a solution, rather than manually look at logs.

Share this

Related Posts

There was an error in this gadget