@echo off setlocal cd /d %~dp0 echo =========================================== echo BitLocker Recovery Key Backup & Suspend echo =========================================== :: 1. Export Recovery Key to the same folder as this batch echo [1/2] Exporting Recovery Key... manage-bde -protectors -get C: > "%~dp0%COMPUTERNAME%_BitLocker.txt" :: 2. Suspend BitLocker protection (RebootCount 0 = stays suspended) echo [2/2] Suspending BitLocker... powershell -Command "Suspend-BitLocker -MountPoint 'C:' -RebootCount 0" echo. echo ------------------------------------------- echo COMPLETED! echo Please check if "%COMPUTERNAME%_BitLocker.txt" exists. echo You can now proceed with "Reset this PC". echo ------------------------------------------- pause start ms-settings:recovery