forked from haithamaouati/BW11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BW11.bat
76 lines (64 loc) · 1.93 KB
/
BW11.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
@echo off
title BW11
mode 80,25
color 07
REM Author: Haitham Aouati
REM GitHub: https://github.com/haithamaouati
cls
net session >nul 2>&1
if %errorlevel% == 0 (
goto main_menu
) else (
echo This script must be run as an administrator.
pause
exit
)
:main_menu
cls
echo.
echo ########## ##########
echo ########## ##########
echo ########## ##########
echo ########## ##########
echo ########## ##########
echo.
echo ########## ##########
echo ########## ##########
echo ########## ##########
echo ########## ##########
echo ########## ##########
echo.
echo Main menu:
echo 1. Bypass
echo 2. Exit
echo.
set /p choice=Enter your choice:
if "%choice%"=="1" goto bypass
if "%choice%"=="2" goto end
echo Invalid choice. Please try again.
goto main_menu
:bypass
echo This section allows you to bypass various checks.
echo 1. Bypass CPU Check
echo 2. Bypass Storage Check
echo 3. Bypass RAM Check
echo 4. Bypass TPM Check
echo 5. Bypass SecureBoot Check
echo 6. Allow Upgrade With Unsupported TPM or CPU
echo.
echo Adding keys to bypass various checks...
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig /v BypassCPUCheck /f /t REG_DWORD /d 00000001
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig /v BypassStorageCheck /f /t REG_DWORD /d 00000001
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig /v BypassRAMCheck /f /t REG_DWORD /d 00000001
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig /v BypassTPMCheck /f /t REG_DWORD /d 00000001
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /f /t REG_DWORD /d 00000001
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup /v AllowUpgradesWithUnsupportedTPMOrCPU /f /t REG_DWORD /d 00000001
echo Keys added successfully.
pause
goto main_menu
:end
echo Are you sure you want to exit the script? (y/n)
set /p confirm=
if /i "%confirm%"=="y" exit
if /i "%confirm%"=="n" goto main_menu
goto end