forked from brokyz/Win10_LTSC_2021_FixPacks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRunThis.cmd
77 lines (67 loc) · 1.39 KB
/
RunThis.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
@echo off
@REM brokyz
openfiles 1>nul 2>nul || goto :administrator
if /i "%PROCESSOR_ARCHITECTURE%" equ "AMD64" (set "arch=x64") else (set "arch=x86")
set ROOT_DIR=%~dp0
:first
cls
echo.
echo %ROOT_DIR%
echo.
echo ============================================================
echo Win10 LTSC 2021 FixPacks
echo ============================================================
echo.
echo 1. Activate Win10 LTSC 2021 (winactivate)
echo 2. Activate Win10 LTSC 2021 (HWID_Activation)
echo 3. Fix-LTSC2021
echo 4. Add MicrosoftStore
echo 5. Exit
echo.
echo ============================================================
echo.
echo Chose the option you need:
set /p opt=
if %opt%==1 goto :activate
if %opt%==2 goto :HWID-KMS38_Activation
if %opt%==3 goto :fix
if %opt%==4 goto :installMicrosoftStore
if %opt%==5 goto :exit
echo error: Please check you input.
goto :first
:activate
echo.
call %ROOT_DIR%Winactivate\winactivate.cmd
echo.
echo finished.
echo .
goto :first
:HWID-KMS38_Activation
echo.
call %ROOT_DIR%HWID-KMS38_Activation\HWID_Activation.cmd
echo.
echo finished.
echo .
goto :first
:fix
echo.
call %ROOT_DIR%Fix-LTSC2021\Fix-LTSC2021.cmd
echo.
echo finished.
echo .
goto :first
:installMicrosoftStore
echo.
call %ROOT_DIR%Add-Store\Add-Store.cmd
echo.
echo finished.
echo.
goto :first
:administrator
echo.
echo Please run this by administrator privilege.
echo.
echo Press any key to exit.
pause >nul
:exit
exit