April 12th, 2014

PowerTip: List DHCP Server Clients with PowerShell

Doctor Scripto
Scripter

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 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback