none
search for a computer in DHCP console RRS feed

  • Question

  • 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

    Monday, July 25, 2016 1:18 PM

Answers

  • 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

    • Proposed as answer by John Lii Monday, August 8, 2016 7:02 AM
    • Marked as answer by Leo HanModerator Tuesday, August 9, 2016 6:32 AM
    Tuesday, July 26, 2016 6:39 AM
  • 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"


    • Edited by Earl G. Hyde Thursday, October 24, 2019 8:07 PM
    • Marked as answer by pob579 Tuesday, November 5, 2019 6:19 PM
    Thursday, October 24, 2019 8:02 PM

All replies

  • 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 1:27 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

    Monday, July 25, 2016 2:31 PM
  • 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

    • Proposed as answer by John Lii Monday, August 8, 2016 7:02 AM
    • Marked as answer by Leo HanModerator Tuesday, August 9, 2016 6:32 AM
    Tuesday, July 26, 2016 6:39 AM
  • 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"


    • Edited by Earl G. Hyde Thursday, October 24, 2019 8:07 PM
    • Marked as answer by pob579 Tuesday, November 5, 2019 6:19 PM
    Thursday, October 24, 2019 8:02 PM
  • Thanks for the input...

    --- 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