0% found this document useful (0 votes)
28 views9 pages

Trabalho de Codigos Lks

This script contains code for activating different versions of Windows using various methods like online KMS activation, activation renewal, and converting retail versions to volume license versions. It provides a menu driven interface to select these different activation options and includes functions for checking prerequisites and elevating privileges. The script is meant to make activating Windows easier through an all-in-one automated process.

Uploaded by

worship and fire
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views9 pages

Trabalho de Codigos Lks

This script contains code for activating different versions of Windows using various methods like online KMS activation, activation renewal, and converting retail versions to volume license versions. It provides a menu driven interface to select these different activation options and includes functions for checking prerequisites and elevating privileges. The script is meant to make activating Windows easier through an all-in-one automated process.

Uploaded by

worship and fire
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

@echo off

: =================================================================

: This script is a part of 'Microsoft Activation Scripts'

: Maintained by @WindowsAddict

: Homepage - https://www.nsaneforums.com/topic/316668--/

: =================================================================

::=======================================================================
=================================================================

cls

title By Gleison lima

for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G

set "ErrLine=echo. &call :Color 0C "==== ERROR ====" &echo:&echo."

setlocal EnableDelayedExpansion

call :Color_Pre

::=======================================================================
=================================================================

: ===========================================================
: Check if the file path name contains special characters

: https://stackoverflow.com/a/33626625

: Written by @jeb (stackoverflow)

: Thanks to @abbodi1406 (MDL) for the help.

: ===========================================================

setlocal

setlocal DisableDelayedExpansion

set "param=%~f0"

cmd /v:on /c echo(^^!param^^!| findstr /R "[| ` ~ ! @ %% \^ & ( ) \[ \] { } + = ; ' , |]*^"

endlocal

if %errorlevel% EQU 0 (

%ErrLine%

echo Disallowed special characters detected in file path name.

echo Make sure file path name do not have following special characters,

echo ^` ^~ ^! ^@ %% ^^ ^& ^( ^) [ ] { } ^+ ^= ^; ^' ^,

goto MASend

::=======================================================================
=================================================================

if %winbuild% LSS 7600 (

%ErrLine%

echo Unsupported OS version Detected.

echo Project is supported only for Windows 7/8/8.1/10 and their Server equivalent.

goto MASend

)
::=======================================================================
=================================================================

: ================================================

: Self-elevate passing args and preventing loop

: Written by @AveYo aka @BAU

: ================================================

setlocal

reg query HKEY_USERS\S-1-5-20 1>nul 2>nul && goto GotPrivileges_1

If "%ElevError%"=="Y" goto Elev_Err_1

set "args="%~f0" %*" & call set "args=%%args:"=\"%%"

echo Initializing...

powershell -c "start cmd -ArgumentList '/c set ElevError=Y& call %args%' -verb runas" && exit
/b

:Elev_Err_1

%ErrLine%

echo Right click on this file and select 'Run as administrator'

goto MASend

:GotPrivileges_1

endlocal

:========================================================================
========================================================================
======

Color F0

title By Gleison lima


echo.

echo.

echo.

echo.

echo.

echo.

echo.

echo -----------------------------------------------------------

echo.

echo Comunidade Windows lite Oficial MeWe

echo.

echo -----------------------------------------------------------

echo.

echo.

echo Comunidades parceiras

echo HD Virtual Windows 10 Brasil

echo Top Windows

echo.

echo.

echo.

echo.

echo Pressione qualquer tecla para continuar ...

pause >nul

cls

title Microsoft Activation Scripts 1.0

mode con cols=98 lines=30

if exist "%SystemRoot%\Temp\MAS" @RD /S /Q "%SystemRoot%\Temp\MAS" >nul 2>&1

goto DigitalActivation
:MainMenu

exit

:========================================================================
========================================================================
======

:OnlineKMSActivation

cls

title Online KMS Activation

mode con cols=98 lines=30

echo -------------------------------------------------------------------------

echo This script will skip any permanent and KMS38 Activation.

echo KMS activates for 180 Days.^(For core/ProWMC edition it is 30/45 Days^)

echo Retail office needs VL conversion to be able to activate with KMS.

echo Use Read Me for the details.

echo -------------------------------------------------------------------------

echo.

echo _________________________________________________________

echo ^| ^|

echo ^| ^|

echo ^| [A] Online KMS Activation ^|

echo ^| ^|

echo ^| [B] Activation Renewal ^|

echo ^| ^|

echo ^| [C] Complete Uninstall ^|

echo ^| _______________________________________________ ^|

echo ^| ^|
echo ^| [D] Convert C2R-Retail Office To VL ^|

echo ^| ^|

echo ^| [E] Go to Main Menu ^|

echo ^| ^|

echo ^|_________________________________________________________^|

echo.

choice /C:ABCDE /N /M ". Enter Your Choice [A,B,C,D,E] : "

if errorlevel 5 goto:MainMenu

if errorlevel 4 goto:C2R_R2V

if errorlevel 3 goto:CompleteUninstall

if errorlevel 2 goto:ActivationRenewal

if errorlevel 1 goto:KMSActivation

:========================================================================
========================================================================
======

:ActivationRenewal

cls

title Activation Renewal

mode con cols=98 lines=30

echo ----------------------------------------------------------

echo Use Read Me for the details.

echo ----------------------------------------------------------

echo ______________________________________________________

echo ^| ^|

echo ^| Auto Renewal via Task Scheduler ^|


echo ^| ^|

echo ^| [A] Create Renewal Task ^|

echo ^| ^|

echo ^| [B] Create Renewal and Activation Task ^|

echo ^| ____________________________ ^|

echo ^| ^|

echo ^| Manual Renewal via Desktop Context Menu ^|

echo ^| ^|

echo ^| [C] Add Desktop Context Menu ^|

echo ^| ^|

echo ^| [D] Go to Main Menu ^|

echo ^| ^|

echo ^|______________________________________________________^|

echo.

choice /C:ABCD /N /M ". Enter Your Choice [A,B,C,D] : "

if errorlevel 4 goto:MainMenu

if errorlevel 3 goto:ContextMenu

if errorlevel 2 goto:RenewalTask_ActivationTask

if errorlevel 1 goto:RenewalTask

:========================================================================
========================================================================
======

:C2R_R2V

cls

title Convert C2R-Retail Office To VL

mode con cols=98 lines=30


echo -----------------------------------------------------------

echo These Retail2Volume Scripts are written by @abbodi1406,

echo https://forums.mydigitallife.net/posts/1150042

echo I added it here for convenience to use as an AIO script.

echo -----------------------------------------------------------

echo.

echo _____________________________________________________

echo ^| ^|

echo ^| ^|

echo ^| _______ Convert C2R-Retail Office To VL _______ ^|

echo ^| ^|

echo ^| [A] O2013, ^|

echo ^| ^|

echo ^| [B] O2016, O2019, O365 ^|

echo ^| ^|

echo ^| [C] Go to Main Menu ^|

echo ^| ^|

echo ^|_____________________________________________________^|

echo.

choice /C:ABC /N /M ". Enter Your Choice [A,B,C] : "

if errorlevel 3 goto:MainMenu

if errorlevel 2 goto:O2016_O2019_O365

if errorlevel 1 goto:O2013

:========================================================================
========================================================================
=====
:Extras

cls

title Extras

mode con cols=98 lines=30

echo.

echo.

echo __________________________________________________________

echo ^| ^|

echo ^| ^|

echo ^| [A] Extract $OEM$ Folder [Preactivation] ^|

echo ^| ^|

echo ^| [B] Insert Windows 10 Key [OEMRET] ^|

echo ^| ^|

echo ^| [C] Change Windows 10 Edition [OEMRET] ^|

echo ^| ______________________________________________ ^|

echo ^| ^|

echo ^| [D] Protect KMS38 Activation ^|

echo ^| ^|

echo ^| [E] Unprotect KMS38 Activation ^|

echo ^| ______________________________________________ ^|

echo ^| ^|

echo ^| [F] Check Activation Status [WMIC Method] ^|

echo ^| ^|

echo ^| [G] abbodi1406's Batch Scripts Repo [Link] ^|

echo ^| ^|

echo ^| [H] Go to Main Menu ^|

echo ^| ^|

echo ^|_____________________________________________

You might also like