Share via


search for a computer in DHCP console

Question

Monday, July 25, 2016 1:18 PM

is there a way to search for a computer in DHCP console through all the scopes?

When you hit a wrong note its the next note that makes it good or bad. Miles Davis

All replies (5)

Tuesday, July 26, 2016 6:39 AM ✅Answered

Hi Pob,

 

1.You could open the DHCP server console and right-click address lease, click the Export List

 

Search the computer name with exported file.

 

2.Please run command Nslookup to query computer FQDN and get the IP address of computer. Then you will get scope of the computer.

 

Best Regards

 

John


Thursday, October 24, 2019 8:02 PM ✅Answered

I know this is an old question but I found a better way, assuming you have current windows versions on your DHCP server.  This way exports all the scopes, in my case I have many.  I pipe this to a CSV file and then just do a text search on the results.

Get-DhcpServerv4Scope -ComputerName "dhcpserver.contoso.com" | Get-DhcpServerv4Lease -ComputerName "dhcpserver.contoso.com"


Monday, July 25, 2016 1:27 PM

Hello,

Try using Get-DhcpServerv4Lease cmdlet https://technet.microsoft.com/en-us/library/jj590737%28v=wps.630%29.aspx

Please “Vote As Helpful” and/or “Mark As Answer” if this post helped you. Thanks! Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.


Monday, July 25, 2016 2:31 PM

thanks for the link...

I wanted to find a pc by name in the DHCP console with multiple scopes...

Probably not doable.

When you hit a wrong note its the next note that makes it good or bad. Miles Davis


Tuesday, November 5, 2019 6:19 PM

Thanks for the input...

When you hit a wrong note its the next note that makes it good or bad. Miles Davis