📅  最后修改于: 2023-12-03 15:21:05.962000             🧑  作者: Mango
W10 Reboot CMF是基于Shell-Bash脚本的Windows 10系统重置脚本,它可以帮助用户在不需要CD或USB设备的情况下将系统还原到出厂状态。
./w10-reboot-cmf
W10 Reboot CMF脚本是基于Shell-Bash编写的,运行脚本后会出现一个简单的菜单供用户选择不同的选项。以下是脚本的核心代码:
# display menu and get selection
while true; do
echo ""
echo " 1. Reset entire system (recommended)"
echo " 2. Reset system with saving personal files"
echo " 3. Cancel"
echo ""
read -p " >> " choice
case $choice in
[1]* ) echo ""; echo "Proceeding to a FULL system reset..."; sleep 2; resetfull; break;;
[2]* ) echo ""; echo "Proceeding to a system reset with personal files saved..."; sleep 2; resetsave; break;;
[3]* ) echo ""; echo "Exiting..."; sleep 2; exit;;
* ) echo ""; echo "Invalid input. Please choose a valid option."; sleep 2;;
esac
done
脚本中还包含其他的函数和命令用于执行系统还原和文件备份等操作。