User Tools

Site Tools


microsoft:cli:command-line-sc

This is an old revision of the document!


Find and delete the service

A rugue DHCP is running on my PC as a service. Let's find the service name, stop and delete it First let's find the service with name containing “dhcp”…

wmic service where "name like 'dhcp%'" list status

CMD replies:

C:\Work_Dir\VoIP\DHCP server>wmic service where "name like 'dhcp%'" list status
ExitCode  Name        Status
0         Dhcp        OK
0         DHCPServer  OK
microsoft/cli/command-line-sc.1678431069.txt.gz · Last modified: 2023/03/10 06:51 by rplecko