系统命令

sc config 命令

sc config 是 Microsoft Learn Windows 命令参考中的命令或工具子命令。本页整理可核实的语法、参数和用法示例;适用版本、角色及运行环境请以官方来源为准。

适用版本/范围: Microsoft Learn Windows 客户端与 Windows Server 命令参考;部分条目可能属于旧版命令、服务器角色、可选功能或交互式工具子命令。English

官方文档语法

sc.exe [<servername>] config [<servicename>] [type= {own | share | kernel | filesys | rec | adapt | interact type= {own | share}}] [start= {boot | system | auto | demand | disabled | delayed-auto}] [error= {normal | severe | critical | ignore}] [binpath= <binarypathname>] [group= <loadordergroup>] [tag= {yes | no}] [depend= <dependencies>] [obj= {<accountname> | <objectname>}] [displayname= <displayname>] [password= <password>]

链接的 Microsoft Learn 文章是上游依据;命令是否可用取决于 Windows 版本、服务器角色、可选功能或交互式工具上下文。

语法用法形式

Microsoft Learn 语法形式;执行前请替换占位符,并从互斥选项中选择适用项。

sc.exe [<servername>] config [<servicename>] [type= {own | share | kernel | filesys | rec | adapt | interact type= {own | share}}] [start= {boot | system | auto | demand | disabled | delayed-auto}] [error= {normal | severe | critical | ignore}] [binpath= <binarypathname>] [group= <loadordergroup>] [tag= {yes | no}] [depend= <dependencies>] [obj= {<accountname> | <objectname>}] [displayname= <displayname>] [password= <password>]

参数、选项与子句

参数 / 子句说明
<servername>Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。
<servicename>Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。
type= {ownMicrosoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。
<binarypathname>Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。
<loadordergroup>Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。
<dependencies>Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。
<accountname>Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。
<objectname>Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。
<displayname>Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。
<password>Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。
安全提示

执行前请核对命令和目标路径。修改文件、服务、账户、磁盘、权限或数据库的操作可能难以撤销;建议先在安全环境测试并保留备份。

参考文档 ↗返回目录