April 30th, 2013

PowerTip: Use PowerShell to Check DHCP Status

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to check on DHCP status.

Hey, Scripting Guy! Question How can I use Windows PowerShell to check on my DHCP status?

Hey, Scripting Guy! Answer Use the Get-Service cmdlet and search for services that have DHCP in the name. You can do this remotely if the firewall has exceptions and if you have rights.

PS C:\> gsv -Name *dhcp* -ComputerName wds1

 

Status  Name        DisplayName

——  —-        ———–

Running Dhcp        DHCP Client

Running DHCPServer     DHCP Server

 

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.