window中把sc命令

来源:互联网 发布:js获取宽度 编辑:程序博客网 时间:2024/05/16 15:08

sc create

  在注册表和“服务控制管理器”中为服务创建子项和项目。

  语法

  Sc [ServerName] create [ServiceName] [type= {own | share | kernel | filesys | rec | adapt | interacttype= {own | share}}] [start= {boot | system | auto | demand | disabled}] [error= {normal | severe | critical | ignore}] [binpath= BinaryPathName] [group= LoadOrderGroup] [tag= {yes | no}] [depend= dependencies] [obj= {AccountName | ObjectName}] [displayname= DisplayName] [password= Password]

  参数:各个参数的作用参见sc config 命令

  下面的示例显示了如何使用 sc create 命令:

  sc create NewService binpath=(空格)c:\windows\system32\NewServ.exe type=(空格)share start=(空格)auto depend= "+TDI Netbios"

  sc  create ccproxy binpath= c:\windows\ccproxy\ccproxy.exe type= share start= auto

sc delete

  从注册表中删除服务子项。

  示例:

       sc delete newserv

       sc delete ccproxy

0 0
原创粉丝点击