蓝色动力网络

找网吧系统
就到网吧系统下载站

使用添加删除windows的系统服务的例子

作者:chen人气:0来源:网吧系统下载站2014-05-21 10:18:12

广告载入中...

使用SC 工具可以进行windows服务的添加和删除。步骤如下:

如需要添加一个服务,至少需要知道服务名称,可执行程序,依赖等信息。

一、步骤:

1、创建服务

打开命令行工具,输入:

C:Documents and Settingstiger>sc create dmadmin binPath= "C:WINDOWSsystem32dmadmin.exe" type= own start= auto  depend= PlugPlay/RpcSs/dmserver  DisplayName= "Logical Disk Manager Administrative Service"

create --创建服务操作

dmadmin --服务名称

binPath --可执行程序或DLL,OCX路径

start --是否自动开始

depend --依赖的服务

DisplayName --现实名称

执行结果:

[SC] CreateService SUCCESS

表示成功。若没有SUCCESS字样,则表示失败。

2、删除服务

C:Documents and Settingstiger>sc delete dmadmin
[SC] DeleteService SUCCESS

3、注意

参数格式为:参数名称=【空格】参数

等号一定要加空格,等号前不要加空格。所有参数必须严格遵守此规定,否则不成功。

二、sc 使用参数参考

Creates a service entry in the registry and Service Database.
SYNTAX:
sc create [service name] [binPath= ] <option1> <option2>...
CREATE OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec>
      (default = own)
start= <boot|system|auto|demand|disabled>
      (default = demand)
error= <normal|severe|critical|ignore>
      (default = normal)
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
      (default = LocalSystem)
DisplayName= <display name>
password= <password>

继续阅读:windows

分享吧~提高逼格:

栏目分类

热门下载

More
官方微信二维码蓝色动力官方微信公众号