반응형
참조사이트
더보기
https://sarithvs.wordpress.com/2011/01/09/how-to-find-the-service-name-using-command-line/
How to find the service name using command line
How to find the service name using command line net start Using net start we will be able to see the running service but it will show only the display name sc query | find “DISPLAY_NAME”…
sarithvs.wordpress.com
C:\> sc query | find "DISPLAY_NAME"
DISPLAY_NAME: Base Filtering Engine
DISPLAY_NAME: Certificate Propagation
DISPLAY_NAME: CoreMessaging
DISPLAY_NAME: Cryptographic Services
DISPLAY_NAME: DCOM Server Process Launcher
C:\> sc query | find "SERVICE_NAME"
SERVICE_NAME: BFE
SERVICE_NAME: CertPropSvc
SERVICE_NAME: CoreMessagingRegistrar
SERVICE_NAME: CryptSvc
SERVICE_NAME: DcomLaunch
특정 서비스 검색
C:\> sc query MariaDB
SERVICE_NAME: MariaDB
종류 : 10 WIN32_OWN_PROCESS
상태 : 1 STOPPED
WIN32_EXIT_CODE : 1066 (0x42a)
SERVICE_EXIT_CODE : 1 (0x1)
검사점 : 0x0
WAIT_HINT : 0x0
서비스 중지
C:\> sc stop MariaDB
SERVICE_NAME: mariaDB
종류 : 10 WIN32_OWN_PROCESS
상태 : 3 STOP_PENDING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
검사점 : 0x4
WAIT_HINT : 0x0
서비스 중지를 다시 시킨다면...
C:\> sc stop MariaDB
[SC] ControlService 실패 1062:
서비스가 시작되지 않았습니다.
서비스 중지
C:\> net stop MariaDB
MariaDB 서비스를 멈춥니다...
MariaDB 서비스를 잘 멈추었습니
서비스 시작
C:\> sc start MariaDB
SERVICE_NAME: mariadb
종류 : 10 WIN32_OWN_PROCESS
상태 : 2 START_PENDING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
검사점 : 0x1
WAIT_HINT : 0x0
PID : 2964
플래그 :
서비스 시작
C:\> net start MariaDB
MariaDB 서비스를 시작합니다...
MariaDB 서비스가 잘 시작되었습니다.
서비스 삭제
C:\> sc delete MariaDB
[SC] DeleteService 성공
반응형
'Windows > Command' 카테고리의 다른 글
* url save batchfile / url 저장 배치파일 (0) | 2022.04.04 |
---|---|
* lancard change : 랜카드 정보 변경 (0) | 2022.01.29 |
network drive connect : 네트워크 드라이브 연결 (0) | 2022.01.29 |
* windows server package 조회 : 윈도우즈 서버 설치된 패키지 조회 (0) | 2022.01.29 |
* disk letter change & remove : 디스크 드라이브 문자 변경 및 제거 (0) | 2022.01.29 |