2019-03-10 14:19:09 +00:00
|
|
|
# cmstp
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 用于管理连接服务配置文件的命令行工具。
|
2022-10-04 16:06:23 +01:00
|
|
|
> 更多信息:<https://learn.microsoft.com/windows-server/administration/windows-commands/cmstp>.
|
2019-03-10 14:19:09 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 安装指定的配置文件:
|
2019-03-10 14:19:09 +00:00
|
|
|
|
|
|
|
`cmstp "{{配置文件的路径}}"`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 安装时不创建桌面快捷方式:
|
2019-03-10 14:19:09 +00:00
|
|
|
|
|
|
|
`cmstp /ns "{{配置文件的路径}}"`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 安装时不检查依赖:
|
2019-03-10 14:19:09 +00:00
|
|
|
|
|
|
|
`cmstp /nf "{{配置文件的路径}}"`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 仅为当前用户安装:
|
2019-03-10 14:19:09 +00:00
|
|
|
|
|
|
|
`cmstp /su "{{配置文件的路径}}"`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 为所有用户安装(需要管理员权限):
|
2019-03-10 14:19:09 +00:00
|
|
|
|
|
|
|
`cmstp /au "{{配置文件的路径}}"`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 静默安装:
|
2019-03-10 14:19:09 +00:00
|
|
|
|
|
|
|
`cmstp /s "{{配置文件的路径}}"`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 卸载一个指定的配置文件:
|
2019-03-10 14:19:09 +00:00
|
|
|
|
|
|
|
`cmstp /u "{{配置文件的路径}}"`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 静默删除:
|
2019-03-10 14:19:09 +00:00
|
|
|
|
|
|
|
`cmstp /u /s "{{配置文件的路径}}"`
|