Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadjerjawi committed Jun 10, 2024
1 parent 4175140 commit c138b10
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Windows Activator.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@ECHO off

REM Check/Get permission
:check_Permission
NET session >nul 2>&1
IF %errorLevel% == 0 (
GOTO Activator
) ELSE (
GOTO UACPrompt
)

:UACPrompt
ECHO Set UAC = CreateObject("Shell.Application") > "%temp%\getadmin1.vbs"
ECHO UAC.ShellExecute "cmd","/c ""%~s0"" %*", "", "runas", 1 >> "%temp%\getadmin1.vbs"
"%temp%\getadmin1.vbs"
DEL "%temp%\getadmin1.vbs"
EXIT

:Activator
SLMGR /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX >nul
SLMGR /skms kms.digiboy.ir >nul
SLMGR /ato >nul

REM Display activation status
echo Activation Status:
cscript //nologo "%windir%\system32\slmgr.vbs" -xpr

REM Get system version
for /f "tokens=*" %%a in ('wmic os get caption ^| findstr /r /v "^$"') do set "version=%%a"

REM Display system version
echo System Version: %version%

REM Display activation details and redirect errors to error.txt
cscript //nologo "%windir%\system32\slmgr.vbs" /dli > error.txt 2>&1

EXIT

0 comments on commit c138b10

Please sign in to comment.