-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactivate.bat
More file actions
44 lines (34 loc) · 980 Bytes
/
activate.bat
File metadata and controls
44 lines (34 loc) · 980 Bytes
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
@echo off
title Windows Activation Script
echo ========================================
echo Windows Activation Tool(10/11)
echo ========================================
:: Prompt user to enter the Windows key
set /p key=Enter your Windows license key:
:: Check if user entered something
if "%key%"=="" (
echo Error: No key entered!
pause
exit /b
)
:: Install the product key
echo Installing product key...
slmgr /ipk %key%
:: Wait a bit for key processing
timeout /t 2 >nul
:: Set the KMS server
echo Setting KMS server...
slmgr /skms kms8.msguides.com
:: Wait a bit before activation
timeout /t 2 >nul
:: Activate Windows
echo Activating Windows...
slmgr /ato
:: Wait again to let Windows process activation
timeout /t 2 >nul
:: Done!
echo ===================================================================
echo Activation process finished.
echo You can check your activation status with: slmgr /xpr or slmgr /dli
echo Press any key to exit...
pause