-
Notifications
You must be signed in to change notification settings - Fork 18
/
11Bypass.cmd
102 lines (91 loc) · 3.35 KB
/
11Bypass.cmd
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
@echo off
rem ================================================================================
rem Windows 11 Requirements Bypass
rem ================================================================================
rem
rem Written by Shiro39
rem Last modified 2021-08-03
rem
rem ================================================================================
title Windows 11
mode con:cols=80 lines=20
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
goto firstpage
) else (
goto gotAdmin
)
:firstpage
cls
echo Where are you running this script on?
echo.
echo 1. On the currently running Windows
echo 2. On the installation
echo.
echo.
echo Do NOT choose option 1 if you are on the installation!
echo It will cause an infinite loop!
echo.
set /p input=Input:
if /i "%input%" == "1" (
set "input="
goto BatchGotAdmin
)
if /i "%input%" == "2" (
set "input="
goto main
) else (
set "input="
goto firstpage
)
:BatchGotAdmin
REM https://sites.google.com/site/eneerge/scripts/batchgotadmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
cls
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------
:main
cls
echo ================================================================================
echo Windows 11 Requirements Bypass
echo ================================================================================
echo.
echo Adding key "BypassCPUCheck" into registry...
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassCPUCheck" /f /t REG_DWORD /d 1 > nul
echo Adding key "BypassStorageCheck" into registry...
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassStorageCheck" /f /t REG_DWORD /d 1 > nul
echo Adding key "BypassRAMCheck" into registry...
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassRAMCheck" /f /t REG_DWORD /d 1 > nul
echo Adding key "BypassTPMCheck" into registry...
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassTPMCheck" /f /t REG_DWORD /d 1 > nul
echo Adding key "BypassSecureBootCheck" into registry...
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassSecureBootCheck" /f /t REG_DWORD /d 1 > nul
echo Adding additional key "AllowUpgradesWithUnsupportedTPMOrCPU" into registry...
reg add "HKLM\SYSTEM\Setup\MoSetup" /v "AllowUpgradesWithUnsupportedTPMOrCPU" /f /t REG_DWORD /d 1 > nul
echo.
echo All the needed registries to bypass the requirements has been added.
echo Now go back to previous page and then go to the next page to proceed.
echo You should no longer see the "Unsupported" message anymore.
echo.
echo ================================================================================
echo.
echo Press any key to close this CMD...
pause > nul
exit