:: *****************************************************************************************************************************************************************
:: 20231207
:: 把SafeAuthClient64W.exe / MfgMode64W.exe / HotSos64W.exe / FPTW64.exe(每个BIOS都有对应的文件) / ServiceReset64W.exe放到同一文件下
:: 则可以直接运行该脚本.
:: 作者: Darren Zhang
:: *****************************************************************************************************************************************************************
@echo off
:start
echo Enter the following items to run:
echo 1. Prepare for flash BIOS through FPT;
echo 2. Reset the Service Tag;
echo 3. Exit.
echo.
echo Your options are:
set /p ID=
if "%id%"=="1" goto PrepareFB
if "%id%"=="2" goto ResetST
if "%id%"=="3" goto Exit
cls
echo.
echo Your input is incorrect, please re-select the project to run.
ping 127.0.0.1 -n 2 >nul
cls
goto start
:PrepareFB
echo Enabling security authentication:
SafeAuthClient64W.exe -safe 172.17.1.22
ping 127.0.0.1 -n 3 >nul
cls
echo.
echo Enable the OSMM factory mode:
MfgMode64W.exe +OSMM
ping 127.0.0.1 -n 3 >nul
cls
echo.
echo Run 'HotSos64W.exe UNL' instruction:
HotSos64W.exe UNL
ping 127.0.0.1 -n 3 >nul
cls
echo.
echo Run 'FPTW64.exe /greset' instruction:
FPTW64.exe /greset
ping 127.0.0.1 -n 5 >nul
goto Pause
:ResetST
cls
echo Enabling security authentication:
SafeAuthClient64W.exe -safe 172.17.1.22
echo.
echo Enable the FAMM factory mode:
MfgMode64W.exe +FAMM
echo.
echo Run 'ServiceReset64W.exe clr' instruction:
ServiceReset64W.exe clr
goto Pause
:Exit
exit
:Pause
pause