Reboot Restore Enterprise 的全部命令行开关清单

本文列出的命令可通过多种方式与 Reboot Restore Enterprise 及现有基础设施配合执行。

使用 Reboot Restore Enterprise 版的用户可以直接通过随附的 EndPoint Manager 界面执行这些命令;同时,使用其他支持命令行部署的管理平台的组织,也会发现这些命令能与现有工具与流程无缝整合。这种灵活性确保管理员可以选择最贴合自身既有流程与技术环境的部署方式。

ShdCmd.exe 在已安装 Reboot Restore 的客户端 PC 上的默认路径为 "C:\Program Files\Reboot Restore Enterprise"。

本文目录

安装与卸载(Setup - Install and Uninstall)

基线管理(Baseline Management)

许可证激活(License Activation / Product ID)

------

安装与卸载

无人值守安装 Setup.exe /s

卸载 ShdCmd.exe /Uninstall {/start | /lastgood | /baseline } /u administrator /p password

程序设置

托盘图标 ShdCmd.exe /TrayIcon [/show | /hide] /u administrator /p password

界面语言 ShdCmd.exe /Lang [/set langid] /u administrator /p password **Langid 可通过运行 ShdCmd.exe /Lang 获取*

子系统显示模式 ShdCmd.exe /StartMode [text | color16 | color256 | colortrue] /u administrator /p password

显示受保护分区 ShdCmd.exe /Part /u administrator /p password

修改管理员密码 ShdCmd.exe /ChangePwd /pwd [password] /u administrator /p password

从 Setup.ini 导入程序设置 ShdCmd.exe /Import {/path inifilepath} /u administrator /p password

关闭/开启防护 ShdCmd.exe /protect [enable | disable] /u administrator /p password

显示/隐藏子系统徽标 ShdCmd.exe /SubSystem [/show | /hide] /u administrator /p password

允许安装无法回滚的 Windows 更新 ShdCmd.exe /BcdEdit [/enable | /disable] /u administrator /p password

禁用 Windows 自动更新(适用于 Windows 10/11) ShdCmd.exe /watchWU [/enable | /disable] /u administrator /p password

基线管理

更新基线 ShdCmd.exe /Snapshot /u administrator /p password

更新基线计划 ShdCmd.exe /UpdateSch [/show] [/win] [/app name] [/t day-from-to] [/shutdown] /u administrator /p password *[/show] 显示当前设置

例如:shdcmd.exe /UpdateSche /win /t 01-03-04 /u administrator /p password 这会把 Windows 更新计划设为周一凌晨 3 点至 4 点。

例如:shdcmd.exe /UpdateSche /win /t 02-03 /u administrator /p password 这会把 Windows 更新计划设为周二凌晨 3 点开始,直到完成。

列出所有快照 ShdCmd.exe /List /u administrator /p password

启用/禁用快速还原 ShdCmd.exe /FastRes [/enable | /disable]

立即还原 ShdCmd.exe /Restore [/start| /lastgood | /baseline] /shutdown /u administrator /p password

重置或更新安装时基线 ShdCmd.exe /Baseline {/reset | /update} /u administrator /p password /reset:重置回安装时的基线 /update:把当前系统作为新的安装基线

将注册表项排除在还原之外 ShdCmd.exe /SyncReg [/add keyname1 ...] [/del keyname1 ...] [/clear] [/export filename] [/backup] /u administrator /p password add:添加要排除在还原之外的注册表键 del:从排除清单中移除已添加的注册表键 clear:清空所有已加入排除清单的注册表键 export:将排除清单中的注册表键导出到文件(仅用于调试)

资源使用限制 ShdCmd.exe /Restrict [/cdrom [0|1]] [/ufd [0|1]] [/internet [0|1]] /u administrator /p password

还原设置 ShdCmd.exe /ResMode [/show] [/restart] [/logoff] [/idle mm] [/weekly "dd hh:mm"] [/daily hh:mm|1stboot] [/hourly mm] [/disable] /u administrator /p password *[/show] 显示当前设置

立即应用 Windows 更新 ShdCmd.exe /updwin /all /u administrator /p password

在 Pre-OS 中整理快照碎片 ShdCmd.exe /defragnow /u administrator /p password

设置子系统在每次重启时整理碎片 ShdCmd.exe /TsrOpt {/enable | /disable} /u administrator /p password

激活

查看激活状态 ShdCmd.exe /netreg /status

使用现有 Product ID 立即激活 ShdCmd.exe /netreg /regnow

使用另一个 Product ID 激活 ShdCmd.exe /netreg /pid RM123-568-1236 /restart /u Administrator /p password **如果不希望激活后自动重启系统,请勿使用 /restart 开关*

显示试用剩余天数 ShdCmd.exe /netreg /days

分类:Reboot Restore 企业版 / 标准版