microsoft:cli:command-line-sc
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| microsoft:cli:command-line-sc [2023/03/10 06:50] – created rplecko | microsoft:cli:command-line-sc [2023/03/10 06:56] (current) – rplecko | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| wmic service where "name like ' | wmic service where "name like ' | ||
| | | ||
| + | CMD replies: | ||
| + | < | ||
| + | C: | ||
| + | ExitCode | ||
| + | 0 | ||
| + | 0 | ||
| + | </ | ||
| + | So there is a service called " | ||
| + | Let's stop it... | ||
| + | |||
| + | sc stop DHCPServer | ||
| + | |||
| + | CMD replies: | ||
| + | |||
| + | < | ||
| + | SERVICE_NAME: | ||
| + | TYPE : 10 WIN32_OWN_PROCESS | ||
| + | STATE : 3 STOP_PENDING | ||
| + | (STOPPABLE, NOT_PAUSABLE, | ||
| + | WIN32_EXIT_CODE | ||
| + | SERVICE_EXIT_CODE | ||
| + | CHECKPOINT | ||
| + | WAIT_HINT | ||
| + | </ | ||
| + | |||
| + | Now we can delete the service | ||
| + | |||
| + | sc delete DHCPServer | ||
| + | |||
| + | and the CMD replies: | ||
| + | |||
| + | < | ||
| + | [SC] DeleteService SUCCESS | ||
| + | </ | ||
microsoft/cli/command-line-sc.1678431005.txt.gz · Last modified: 2023/03/10 06:50 by rplecko
