PowerTip: Use PowerShell to Check DHCP Status

Doctor Scripto

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

 

0 comments

Discussion is closed.

Feedback usabilla icon