Toshiki Higa 1 месяц назад
Родитель
Сommit
d21fe168ac
1 измененных файлов: 23 добавлений и 0 удалений
  1. 23
    0
      Prepare_Reset.bat

+ 23
- 0
Prepare_Reset.bat Просмотреть файл

@@ -0,0 +1,23 @@
1
+@echo off
2
+setlocal
3
+cd /d %~dp0
4
+
5
+echo ===========================================
6
+echo   BitLocker Recovery Key Backup & Suspend
7
+echo ===========================================
8
+
9
+:: 1. Export Recovery Key to the same folder as this batch
10
+echo [1/2] Exporting Recovery Key...
11
+manage-bde -protectors -get C: > "%~dp0%COMPUTERNAME%_BitLocker.txt"
12
+
13
+:: 2. Suspend BitLocker protection (RebootCount 0 = stays suspended)
14
+echo [2/2] Suspending BitLocker...
15
+powershell -Command "Suspend-BitLocker -MountPoint 'C:' -RebootCount 0"
16
+
17
+echo.
18
+echo -------------------------------------------
19
+echo   COMPLETED!
20
+echo   Please check if "%COMPUTERNAME%_BitLocker.txt" exists.
21
+echo   You can now proceed with "Reset this PC".
22
+echo -------------------------------------------
23
+pause

Загрузка…
Отмена
Сохранить