文档详情

SC服务命令详解(国外英文资料).doc

发布:2017-06-05约字共21页下载文档
文本预览下载声明
SC服务命令详解(国外英文资料) The SC service command is detailed The basic format of SC: Sc server [command] [service name] option1, option2 This is his basic format, which only needs to add \ \ IP address to the SC when managing a remote host Sc \ \ query eventlog Check the status of a service Sc query service name C: \ tools sc query eventlog SERVICE_NAME: eventlog / / display service name TYPE: 20 WIN32_SHARE_PROCESS STATE: 4 RUNNING / / RUNNING STATE (NOT_STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN) / / below WIN32_EXIT_CODE: 0 (0x0) SERVICE_EXIT_CODE: 0 (0x0) CHECKPOINT: 0 x0 WAIT_HINT: 0 x0 The status of running is: stopped/running/start_pending (waiting to start) (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN) This information displays the control command that the service can accept, which is / / cannot stop / / cannot suspend/accept the shutdown View the configuration information for a service Sc qc service name C: \ tools sc qc eventlog (SC) GetServiceConfig SUCCESS SERVICE_NAME: eventlog TYPE: 20 WIN32_SHARE_PROCESS START_TYPE: 2 AUTO_START / / boot category NORMAL ERROR_CONTROL: 1 BINARY_PATH_NAME: C: \ WINNT \ system32 \ service.exe / / start the file path LOAD_ORDER_GROUP: Event log TAG: 0 DISPLAY_NAME: the Event Log DEPENDENCIES: SERVICE_START_NAME: LocalSystem The boot category includes auto_start (automatic) DEMAND_START (manual) DISABLED (forbidden) Start a service Sc start service name Suspend a service Sc pause service name Continue a service Sc continue service name Stop a service Sc stop service name Not a service Sc service name config start = disabled A service? To run automatically The sc service name, config start = auto Set up a service to run manually Sc service name config start = demand Create a service Sc create service name parameter 1 parameter 2... The following is a list of parameters Type = own | share |, | filesys | rec Start = boot | system | auto | disabled Error = normal | severe | critical | ignore BinPath = BinaryPathName Gr
显示全部
相似文档