Tổng Hợp

kich-hoat-win-va-office/Script_Kich_hoat_Windows_va_Office_Online_6_thang.cmd at master · congpho/kich-hoat-win-va-office

@

echo

off

::

===========================================================================

fsutil

dirty

query

%systemdrive%

>

nul

2

>&

1

||

(

echo

================================================================

echo

==== LOI ====

echo

Script nay yeu cau quyen Quan tri he thong. De Script hoat dong.

echo

Hay nhap chuot phai vao file .cmd va chon ‘Run as administrator’

echo

================================================================

echo

.

echo

Nhan phim bat ky de thoat…

pause

>

nul

exit

)

::

===========================================================================

color

F0

mode

con cols=

98

lines=

30

title

Script Kich hoat Windows va Office Online

6

thang

setlocal EnableExtensions EnableDelayedExpansion

:=

=====================================================================================================================================================

:

MAINMENU

cls

mode

con cols=

98

lines=

30

for

/f

tokens=2 delims==

%%a

IN

(‘

wmic Path Win32_OperatingSystem Get Caption /format:LIST

‘)

do

(set NameOS=

%%a

)

>

nul

2

>&

1

for

/f

tokens=2 delims==

%%a

IN

(‘

wmic Path Win32_OperatingSystem Get CSDVersion /format:LIST

‘)

do

(set SP=

%%a

)

>

nul

2

>&

1

for

/f

tokens=2 delims==

%%a

in

(‘wmic

path

Win32_OperatingSystem get BuildNumber /value’)

do

(set WinBuild=

%%a

)

>

nul

2

>&

1

echo

. _________________________________________________________

echo

.

echo

%NameOS%

%SP%

%WinBuild%

echo

. _________________________________________________________

echo

.

^

|

^

|

Echo

.

^

| [1] Kich hoat Windows va Office.

^

|

Echo

.

^

|

^

|

Echo

.

^

| [2] Kiem tra trang thai Kich hoat Windows va Office.

^

|

Echo

.

^

|

^

|

Echo

.

^

| [3] _Thong tin ve Script Kich hoat_

^

|

Echo

.

^

| _______________

^

|

echo

.

^

|

^

|

echo

.

^

| [4] Tao tac vu Gia han Kich hoat.

^

|

echo

.

^

|

^

|

echo

.

^

| [5] Xoa cac tep da tao khi Kich hoat.

^

|

echo

.

^

|

^

|

echo

.

^

| [6] Trich xuat Thu muc $OEM$ ra Desktop.

^

|

Echo

.

^

| _______________

^

|

echo

.

^

|

^

|

Echo

.

^

| [7] Kiem tra Cap nhat Script.

^

|

Echo

.

^

|

^

|

Echo

.

^

| [8] Thoat.

^

|

Echo

.

^

|_________________________________________________________

^

|

ECHO

.

choice

/C:12345678 /N /M

. Nhap lua chon cua ban [1,2,3,4,5,6,7,8] :

if

errorlevel

8

goto

:

Exit

if

errorlevel

7

goto

:

ScriptUpdates

if

errorlevel

6

goto

:

Extract$OEM$

if

errorlevel

5

goto

:

CompleteUninstall

if

errorlevel

4

goto

:

CreateRenewalTask

if

errorlevel

3

goto

:

ReadMe

if

errorlevel

2

goto

:

CheckActivation

if

errorlevel

1

goto

:

Activate

:=

=====================================================================================================================================================

:

ReadMe

cls

mode

con cols=

98

lines=

135

call

:

create_file

%0

%TEMP%

ReadMe.txt

REM ReadMe Start

REM ReadMe End

goto

:

TempReadMe

REM

ReadMe Start

==============================================================================================

=

# Gioi thieu:

– Script

CMD

Kich hoat Windows va Office Online

6

thang

Kich hoat Windows va Office bang Key va May chu KMS truc tuyen.

[File sach 100% khi kiem tra bang Virus total]

==============================================================================================

=

# Chu y:

– Neu ban chi muon kich hoat trong

6

thang va khong muon bat ky phan con lai nao cua qua trinh

kich hoat ton tai tren may (Vi du: Ten may chu KMS), thi truoc tien ban nen chon tuy chon [1]

Kich hoat Windows va Office. va sau do su dung tuy chon [5] Xoa cac tep da tao khi Kich hoat.

– Neu ban muon kich hoat VINH VIEN, thi ban nen chon tuy chon [1] Kich hoat Windows va Office.

Sau do chon [4] Tao tac vu Gia han Kich hoat. Luu y rang he thong cua ban phai ket noi

internet mot lan trong khoang thoi gian

6

thang, de kich hoat VINH VIEN.

– Sau khoảng thời gian chon [1] Kich hoat hoac [4] Gia han Kich hoat, neu ban khong [5] Xoa cac tep da tao

khi Kich hoat. Ma cai luon Office

2013

hay

2016

(Volume) thi Office cua ban se tu dong duoc

Kich hoat ma ban khong can phai chay lai Script. Luu y rang qua trinh Kich hoat ngam nay se

chi dien ra khi ban cai Office tren Windows 8.1/10 va khong xay ra tren Windows 7.

– Neu ngay gio tren he thong cua ban khong chinh xac do ‘Bad Bios Battery’ hay sua chua Pin

Bios va dam bao he thong luon truc tuyen.

– Neu Windows hoac Office cua ban da duoc Kich hoat VINH VIEN, Script se bo qua ma khong tiep

tuc qua trinh Kich hoat.

– Doi voi hau het Windows va Office thoi gian Kich hoat se la

Xem thêm :  Cách Vẽ Biểu Đồ Trong Word 2003, 2007, 2010, 2013, Cách Vẽ Biểu Đồ Tròn Trong Word 2003, 2007, 2010

6

thang/lan. Nhung doi voi mot

so san pham thoi gian co the se ngan hon la

30

ngay/lan hoac

45

ngay/lan …

– Scipt se Kich hoat cac ban Office VL (Volume), khong ho tro Kich hoat Office Retail (C2R).

Vi vay hoac ban

convert

Office Retail sang VL, hoac tai xuong Office VL tu lien ket nay:

https://pastebin.com/raw/Hk2RgYzF cua GezoeSloog (Thanh vien MDL).

Xac minh xem Office VL ban tai xuong co phai la Chinh hang hay khong voi tool nay:

https://genuineisoverifier.weebly.com/

– De tao file iso kich hoat tu dong khi cai Win hay thuc hien thao tac sau:

Su dung tuy chon [6] cua Script va trich xuat thu muc $OEM$ ra Desktop.

Tiep theo sao chep thu muc $OEM$ nay vao thu muc

sources

trong file iso goc.

Theo duong dan. iso/usb:sources$OEM$

Cuoi cung su dung iso/usb nay de cai dat Windows va no se tu dong kich hoat khi

ban co ket noi Internet.

==============================================================================================

=

# Tip Fix Loi:

* Neu trong qua trinh kich hoat gap loi, Hay thu reset lai file Tokens.dat bang cach sau

Chay

CMD

(command prompt) voi Quyen quan tri (run as admin…). Sao chép-paste lenh duoi vao:

– Voi Windows 10, Server 2016/2019:

net stop

sppsvc

ren

%windir%

System32sppstore2.0tokens.dat tokens.bar

net start

sppsvc

cscript

%windir%

system32slmgr.vbs /rilc

– Voi Windows 8, Server 2012/R2:

net stop

sppsvc

cd

%windir%

ServiceProfilesLocalServiceAppDataLocalMicrosoftWSLicense

ren

tokens.dat tokens.bar

net start

sppsvc

cscript.exe

%windir%

system32slmgr.vbs /rilc

– Voi Windows 7, Server

2008

R2:

net stop

sppsvc

cd

%windir%

ServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatform

ren

tokens.dat tokens.bar

net start

sppsvc

cscript.exe

%windir%

system32slmgr.vbs /rilc

Doi qua trinh tren hoan tat, Reset may lai

2

lan.

Sau do hay chay Script de thu Kich hoat lai.

==============================================================================================

=

# Cac Phien ban duoc Ho tro:

Windows

7

Volume (Vi du: Pro, Enterprise)/8/8.1/10

Windows Server 2008R2/2012/2012R2/2016/2019

Office (VL) 2010/2013/2016/2019

==============================================================================================

=

# Tac gia:

Abbodi1406 – Tao tep SppExtComObjPatcher-kms2-Activate-Local.cmd duoc su dung lsm co so

trong ‘Script Kich hoat Windows va Office Online

6

thang’ nay.

rpo, AR_Alex, – Len y tuong, de xuat, tro giup de cai tien Script nay,

Savio, tich hop ho tro may chu kms truc tuyen, dich,

WindowsAddict. kiem tra, quan ly, va xuat ban Script.

==============================================================================================

=

# Link huu ich:

– Script Kich hoat Win va Office Online

6

thang: http://bit.ly/KichHoatWindowsVaOfficeOnline

– Scrip kich hoat Windows

10

ban quyen Vinh Vien: http://bit.ly/KichHoatBanQuyenVinhVien

– Sao luu ban quyen Windows va Office: http://bit.ly/SaoLuuBanQuyen

– Link tai Windows va Office nguyen goc Microsoft: http://bit.ly/LinkTaiISO

– Link tai cac ban Win10 tu kich hoat ban quyen Vinh Vien: https://bit.ly/ActivateDigitalISO

– Key Windows

10

– Windows Server Mac Dinh cua Microsoft: http://bit.ly/KeyGeneric

– Link tai Win10 Enterprise LTSB

2016

x64 nguyen goc: http://bit.ly/enterpriseLTSB2016x64

– Link tai Win10 Enterprise LTSB

2016

x32 nguyen goc: http://bit.ly/enterpriseLTSB2016x32

– Link tai Win10 Enterprise LTSB

2015

x64 nguyen goc: http://bit.ly/LTSB2015x64

– Link tai Win10 Enterprise LTSB

2015

x32 nguyen goc: http://bit.ly/LTSB2015x32

– Trang GetLink Fshare cua J2team: http://bit.ly/GetLinkFshare

– Huong dan toi uu, Fix loi Full Disk 100%: http://bit.ly/FullDisk

– Phan mem VPN, Fake IP: http://bit.ly/VPNGateClient

– Phan mem ho tro duyet tab trong Office nhu tren trinh duyet Website: http://bit.ly/OfficeTabver12

==============================================================================================

=

REM

ReadMe End

:

TempReadMe

type

%temp%

ReadMe.txt

echo

.

echo

Nhan phim bat ky de tiep tuc…

pause

>

nul

del

/f /q

%temp%

ReadMe.txt

goto

:

MAINMENU

:=

=====================================================================================================================================================

:

Activate

cls

mode

con cols=

98

lines=

200

echo

============================================================================

echo

Luu y: De Kich hoat thanh cong hay dam bao ban da ket noi voi Internet.

echo

============================================================================

echo

.

choice

/C:QT /N /M

[T] Tiep tuc Kich hoat [Q] Quay lai :

if

%errorlevel%

==

1

Goto

:

MainMenu

cls

call

:

create_file

%0

%TEMP%

Activation.cmd

REM (Re)activate cmd Start

REM (Re)activate cmd End

goto

:

TempActivation

:

TempActivation

call

%TEMP%

Activation.cmd

del

/f /q

%TEMP%

Activation.cmd

goto

:

MAINMENU

:=

=====================================================================================================================================================

:

CheckActivation

Xem thêm :  Top 10 phim tình cảm lãng mạn Hàn Quốc hay nhất 2021

cls

mode

con cols=

98

lines=

200

ECHO

************************************************************

ECHO

*** Trang thai Windows ***

ECHO

************************************************************

COPY

/Y

%systemroot%

System32slmgr.vbs

%temp%

slmgr.vbs

>

NUL

2

>&

1

cscript

//nologo

%temp%

slmgr.vbs

/dli

cscript

//nologo

%temp%

slmgr.vbs

/xpr

DEL

/F /Q

%temp%

slmgr.vbs

>

NUL

2

>&

1

ECHO

____________________________________________________________________________

:

office2016

IF

EXIST

%systemroot%

SysWOW64cmd.exe (SET bit=64

&

SET wow=1)

ELSE

(SET bit=32

&

SET wow=0)

SET

office

=

FOR

/F

tokens=2*

%%a

IN

(‘

REG QUERY HKLMSOFTWAREMicrosoftOffice16.0CommonInstallRoot /v Path

2

^

>

NUL

‘)

DO

(SET

office=

%%b

)

IF

EXIST

%office%

OSPP.VBS

(

ECHO

.

ECHO

************************************************************

ECHO

*** Trang thai Office

2016

%bit%

-bit ***

ECHO

************************************************************

cscript

//nologo

%office%

OSPP.VBS

/dstatus

)

IF

%wow%

==

GOTO

:

office2013

SET

office

=

FOR

/F

tokens=2*

%%a

IN

(‘

REG QUERY HKLMSOFTWAREWow6432NodeMicrosoftOffice16.0CommonInstallRoot /v Path

2

^

>

NUL

‘)

DO

(SET

office=

%%b

)

IF

EXIST

%office%

OSPP.VBS

(

ECHO

.

ECHO

************************************************************

ECHO

*** Trang thai Office

2016

32-bit ***

ECHO

************************************************************

cscript

//nologo

%office%

OSPP.VBS

/dstatus

)

:

office2013

SET

office

=

FOR

/F

tokens=2*

%%a

IN

(‘

REG QUERY HKLMSOFTWAREMicrosoftOffice15.0CommonInstallRoot /v Path

2

^

>

NUL

‘)

DO

(SET

office=

%%b

)

IF

EXIST

%office%

OSPP.VBS

(

ECHO

.

ECHO

************************************************************

ECHO

*** Trang thai Office

2013

%bit%

-bit ***

ECHO

************************************************************

cscript

//nologo

%office%

OSPP.VBS

/dstatus

)

IF

%wow%

==

GOTO

:

office2010

SET

office

=

FOR

/F

tokens=2*

%%a

IN

(‘

REG QUERY HKLMSOFTWAREWow6432NodeMicrosoftOffice15.0CommonInstallRoot /v Path

2

^

>

NUL

‘)

DO

(SET

office=

%%b

)

IF

EXIST

%office%

OSPP.VBS

(

ECHO

.

ECHO

************************************************************

ECHO

*** Trang thai Office

2013

32-bit ***

ECHO

************************************************************

cscript

//nologo

%office%

OSPP.VBS

/dstatus

)

:

office2010

SET

office

=

FOR

/F

tokens=2*

%%a

IN

(‘

REG QUERY HKLMSOFTWAREMicrosoftOffice14.0CommonInstallRoot /v Path

2

^

>

NUL

‘)

DO

(SET

office=

%%b

)

IF

EXIST

%office%

OSPP.VBS

(

ECHO

.

ECHO

************************************************************

ECHO

*** Trang thai Office

2010

%bit%

-bit ***

ECHO

************************************************************

cscript

//nologo

%office%

OSPP.VBS

/dstatus

)

IF

%wow%

==

GOTO

:

office2016C2R

SET

office

=

FOR

/F

tokens=2*

%%a

IN

(‘

REG QUERY HKLMSOFTWAREWow6432NodeMicrosoftOffice14.0CommonInstallRoot /v Path

2

^

>

NUL

‘)

DO

(SET

office=

%%b

)

IF

EXIST

%office%

OSPP.VBS

(

ECHO

.

ECHO

************************************************************

ECHO

*** Trang thai Office

2010

32-bit ***

ECHO

************************************************************

cscript

//nologo

%office%

OSPP.VBS

/dstatus

)

:

office2016C2R

REG

QUERY

HKLMSOFTWAREMicrosoftOfficeClickToRun /v InstallPath

>

NUL

2

>&

1

||

GOTO

:

office2013C2R

SET

office

=

for

/f

tokens=2*

%%a

IN

(‘

REG QUERY HKLMSOFTWAREMicrosoftOfficeClickToRun /v InstallPath

2

^

>

NUL

‘)

do

(set

office=

%%b

Office16

)

IF

EXIST

%office%

OSPP.VBS

(

ECHO

.

ECHO

************************************************************

ECHO

*** Trang thai Office 2016/2019 C2R ***

ECHO

************************************************************

cscript

//nologo

%office%

OSPP.VBS

/dstatus

)

:

office2013C2R

REG

QUERY

HKLMSOFTWAREMicrosoftOffice15.0ClickToRun /v InstallPath

>

NUL

2

>&

1

||

GOTO

:

office2010C2R

SET

office

=

IF

EXIST

%ProgramFiles%

Microsoft OfficeOffice15OSPP.VBS

(

set

office

=

%ProgramFiles%

Microsoft OfficeOffice15

)

else

IF

EXIST

%ProgramFiles(x86)%

Microsoft OfficeOffice15OSPP.VBS

(

set

office

=

%ProgramFiles(x86)%

Microsoft OfficeOffice15

)

IF

EXIST

%office%

OSPP.VBS

(

ECHO

.

ECHO

************************************************************

ECHO

*** Trang thai Office

2013

C2R ***

ECHO

************************************************************

cscript

//nologo

%office%

OSPP.VBS

/dstatus

)

:

office2010C2R

REG

QUERY

HKLMSOFTWAREMicrosoftOffice14.0ClickToRun /v InstallPath

>

NUL

2

>&

1

||

GOTO

:

End

SET

office

=

IF

EXIST

%ProgramFiles%

Microsoft OfficeOffice14OSPP.VBS

(

set

office

=

%ProgramFiles%

Microsoft OfficeOffice14

)

else

IF

EXIST

%ProgramFiles(x86)%

Microsoft OfficeOffice14OSPP.VBS

(

set

office

=

%ProgramFiles(x86)%

Microsoft OfficeOffice14

)

IF

EXIST

%office%

OSPP.VBS

(

ECHO

.

ECHO

************************************************************

ECHO

*** Trang thai Office

2010

C2R ***

ECHO

************************************************************

cscript

//nologo

%office%

OSPP.VBS

/dstatus

)

:

End

Echo

.

echo

Nhan phim bat ky de tiep tuc…

pause

>

nul

GOTO

:

MAINMENU

:=

=====================================================================================================================================================

:

CreateRenewalTask

cls

mode

con cols=

98

lines=

30

echo

============================================================================

echo

Luu y: Tuy chon nay se tao Tac vu Gia han Kich hoat tu dong Hang tuan.

Xem thêm :  Yorkshire terrier à vendre : Vente de chiots de race Yorkshire terrier

echo

He thong cua ban phai ket noi Internet

1

lan trong khoang thoi gian

echo

6

thang, de Kich hoat Vinh Vien.

echo

Tep tac vu se duoc tao trong C:WindowsOnline_KMS_Activation_Script

echo

Va ban co the xem tac vu theo lich cua no trong Task Schedular.

echo

============================================================================

echo

.

choice

/C:QT /N /M

[T] Tao tac vu Gia han [Q] Quay lai :

if

%errorlevel%

==

1

Goto

:

MainMenu

cls

schtasks

/delete /tn Online_KMS_Activation_Script-Renewal /f

1

>

nul

2

>

nul

schtasks

/delete /tn Online_KMS_Activation_Script-Run_Once /f

1

>

nul

2

>

nul

@

RD

/s /q

%windir%

Online_KMS_Activation_Script

>

nul

2

>&

1

md

%windir%

Online_KMS_Activation_Script

call

:

create_file

%0

%temp%

temp_cmd_file

REM (Re)activate cmd Start

REM (Re)activate cmd End

echo

@echo off

^

&set

Renewal_Task=1

>

%temp%

temp_echo_file

sao chép

/y

%temp%

temp_echo_file

+

%temp%

temp_cmd_file

C:WindowsOnline_KMS_Activation_ScriptOnline_KMS_Activation_Script-Renewal.cmd

>

nul

del

/q

%temp%

temp_cmd_file

>

nul

&

del

/q

%temp%

temp_echo_file

>

nul

call

:

create_file

%0

%temp%

Online_KMS_Activation_Script-Renewal.xml

REM (Re)activate xml Start

REM (Re)activate xml End

call

:

create_file

%0

C:WindowsOnline_KMS_Activation_ScriptInfo.txt

REM Info Start

REM Info End

goto

:

RenewalTaskCreated

:

RenewalTaskCreated

schtasks

/create /tn

Online_KMS_Activation_Script-Renewal

/ru

SYSTEM

/xml

%TEMP%

Online_KMS_Activation_Script-Renewal.xml

>

nul

2

>&

1

del

/f /q

%TEMP%

Online_KMS_Activation_Script-Renewal.xml

>

nul

2

>&

1)

echo

.

echo

.

echo

=========================================

echo

Da tao Tac vu Gia han Hang tuan.

echo

=========================================

echo

.

echo

Nhan phim bat ky de tiep tuc…

pause

>

nul

goto

:

MAINMENU

:=

=====================================================================================================================================================

:

CompleteUninstall

cls

mode

con cols=

98

lines=

30

echo

================================================================================

echo

Luu y: Tuy chon nay se xoa Tac vu Gia han tu dong, tep tac vu, xoa bo nho cache

echo

va ten May chu KMS tren He thong.

Xem Thêm :   ‘Ký sinh trùng’ đời thực ở Seoul

echo

================================================================================

echo

.

choice

/C:QT /N /M

[T] Tiep tuc Xoa cac tep da tao [Q] Quay lai :

if

%errorlevel%

==

1

Goto

:

MainMenu

cls

echo

Dang Xoa Tac vu Gia han Tu dong…

schtasks

/delete /tn Online_KMS_Activation_Script-Renewal /f

1

>

nul

2

>

nul

schtasks

/delete /tn Online_KMS_Activation_Script-Run_Once /f

1

>

nul

2

>

nul

echo

Dang Xoa Tep Tac vu…

@

RD

/s /q

%windir%

Online_KMS_Activation_Script

>

nul

2

>&

1

setlocal EnableExtensions EnableDelayedExpansion

set

OSPP

=

HKLMSOFTWAREMicrosoftOfficeSoftwareProtectionPlatform

set

SPPk

=

SOFTWAREMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform

wmic

path

SoftwareLicensingProduct

where

(Description like ‘

%%

KMSCLIENT

%%

‘) get Name

2

>

nul

|

findstr

/i Windows

1

>

nul

&&

(set SppHook=1)

||

(set SppHook=0)

wmic

path

OfficeSoftwareProtectionService get Version

>

nul

2

>&

1

&&

(set OsppHook=1)

||

(set OsppHook=0)

if

%SppHook%

NEQ

call

:

cKMS

SoftwareLicensingProduct SoftwareLicensingService SPP

if

%OsppHook%

NEQ

call

:

cKMS

OfficeSoftwareProtectionProduct OfficeSoftwareProtectionService OSPP

echo

.

echo

.

echo

==============================

echo

Hoan tat Xoa cac tep da tao.

echo

==============================

echo

.

echo

Nhan phim bat ky de tiep tuc…

pause

>

nul

goto

:

MAINMENU

:

cKMS

echo

.

echo

Dang xoa

%3

KMS Cache…

set

spp

=

%1

set

sps

=

%2

for

/f

tokens=2 delims==

%%A

in

(‘

wmic path

%sps%

get version /format:list

‘)

do

set

ver

=

%%A

for

/f

tokens=2 delims==

%%G

in

(‘

wmic path

%spp%

where (Description like ‘

%%K

MSCLIENT

%%

‘) get ID /VALUE

2

^

>

nul

‘)

do

(set app=

%%G

&

call :

Clear)

wmic

path

%sps%

where

version=’

%ver%

call

ClearKeyManagementServiceMachine

>

nul

2

>&

1

wmic

path

%sps%

where

version=’

%ver%

call

ClearKeyManagementServicePort

>

nul

2

>&

1

wmic

path

%sps%

where

version=’

%ver%

call

DisableKeyManagementServiceDnsPublishing

1

>

nul

2

>&

1

wmic

path

%sps%

where

version=’

%ver%

call

DisableKeyManagementServiceHostCaching

1

>

nul

2

>&

1

if

/i

%1

EQU

SoftwareLicensingProduct (

reg

delete

HKLM

%SPPk%

55c92734-d682-4d71-983e-d6ec3f16059f

/f

>

nul

2

>&

1

reg

delete

HKLM

%SPPk%

Related Articles

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

Back to top button