PowerTip: List DHCP Server Clients with PowerShell

Summary: Use the DHCP server cmdlets in Windows Server 2012 R2 to show current clients.

Hey, Scripting Guy! Question How can I use Windows PowerShell to show my current DHCP server clients?

Hey, Scripting Guy! Answer Use the Get-DHCPServerv4scope and Get-DHCPServerv4Lease cmdlets piped together:

Get-DHCPServerv4scope | Get-DHCPServerv4Lease 

Comments (1)

  1. Mads Kejser says:

    Thank you very much. Doing a project where I have to make a search for computers not in AD.