CMD Add key Windows-Office....

https://drive.google.com/file/d/1WHxPLtbkRjDWpDl8Ez78l-Ic2IWEjEPC/view

Winows 7-8-8.1-10
Sc config sppsvc start= auto & Net.exe start sppsvc
Cscript.exe %systemroot%\system32\slmgr.vbs /upk 
for /f "tokens=6 delims=[.] " %a in ('ver') do set ver=%a
Set winkey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Cscript.exe %systemroot%\system32\slmgr.vbs /ipk %winkey%
for /f "tokens=3" %i in ('cscript.exe %windir%\system32\slmgr.vbs /dti') do set id=%i
if %ver% LEQ 7601 (echo Installation ID: %id:~0,6%-%id:~6,6%-%id:~12,6%-%id:~18,6%-%id:~24,6%-%id:~30,6%-%id:~36,6%-%id:~42,6%-%id:~48,6%> id.txt) else (
echo Installation ID: %id:~0,7%-%id:~7,7%-%id:~14,7%-%id:~21,7%-%id:~28,7%-%id:~35,7%-%id:~42,7%-%id:~49,7%-%id:~56,7%> id.txt
)
start id.txt&timeout 3&del id.txt
echo

==========================================================================================================================================================
Office19_RTM19_ProPlus2019VL_MAK_AE
set key=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cls
set v=6
if exist "%ProgramFiles%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office1%v%"
if exist "%ProgramFiles(x86)%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office1%v%" 
Cscript.exe OSPP.vbs /unpkey:6MWKP
Cscript.exe OSPP.vbs /inpkey:%key% 
for /f "tokens=8" %i in ('cscript.exe OSPP.vbs /dinstid') do set id=%i
if %v% LEQ 4 ((echo Key: %key%&echo.&echo Installation ID: %id:~0,6%-%id:~6,6%-%id:~12,6%-%id:~18,6%-%id:~24,6%-%id:~30,6%-%id:~36,6%-%id:~42,6%-%id:~48,6%)> id.txt) else (
(echo Key: %key%&echo.&echo Installation ID: %id:~0,7%-%id:~7,7%-%id:~14,7%-%id:~21,7%-%id:~28,7%-%id:~35,7%-%id:~42,7%-%id:~49,7%-%id:~56,7%)> id.txt)
start id.txt&timeout 2 >nul&del /f /q %windir%\system32\id.txt
cls


OFFICE 2016 Volume Mak.
START /MAX NOTEPAD
cls
set key=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
set v=6
if exist "%ProgramFiles%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office1%v%"
if exist "%ProgramFiles(x86)%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office1%v%" 
Cscript.exe OSPP.vbs /unpkey:WFG99 >nul 2>&1
Cscript.exe OSPP.vbs /inpkey:%key% >nul 2>&1
cscript //nologo ospp.vbs /dinstid>Office_Installation_ID.txt
start Office_Installation_ID.txt
@

Office 2013 Volume Mak.
set key=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cls
set v=5
if exist "%ProgramFiles%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office1%v%"
if exist "%ProgramFiles(x86)%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office1%v%"
Cscript.exe OSPP.vbs /unpkey:GVGXT >nul 2>&1
Cscript.exe ospp.vbs /inpkey:%key% >nul 2>&1
for /f "tokens=8" %i in ('cscript ospp.vbs /dinstid') do set id=%i
if %v% LEQ 4 ((echo Key: %key%&echo.&echo Installation ID: %id:~0,6%-%id:~6,6%-%id:~12,6%-%id:~18,6%-%id:~24,6%-%id:~30,6%-%id:~36,6%-%id:~42,6%-%id:~48,6%)> id.txt) else (
(echo Key: %key%&echo.&echo Installation ID: %id:~0,7%-%id:~7,7%-%id:~14,7%-%id:~21,7%-%id:~28,7%-%id:~35,7%-%id:~42,7%-%id:~49,7%-%id:~56,7%)> id.txt)
start id.txt&timeout 2 >nul&del /f /q %windir%\system32\id.txt
cls

Office 2010 ProPlusVL MAK
START /MAX NOTEPAD
set key=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cls
set v=4
if exist "%ProgramFiles%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office1%v%"
if exist "%ProgramFiles(x86)%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office1%v%"
Cscript.exe OSPP.vbs /unpkey:H3GVB >nul 2>&1
Cscript.exe ospp.vbs /inpkey:%key% >nul 2>&1
for /f "tokens=8" %i in ('cscript ospp.vbs /dinstid') do set id=%i
if %v% LEQ 4 ((echo Key: %key%&echo.&echo Installation ID: %id:~0,6%-%id:~6,6%-%id:~12,6%-%id:~18,6%-%id:~24,6%-%id:~30,6%-%id:~36,6%-%id:~42,6%-%id:~48,6%)> id.txt) else (
(echo Key: %key%&echo.&echo Installation ID: %id:~0,7%-%id:~7,7%-%id:~14,7%-%id:~21,7%-%id:~28,7%-%id:~35,7%-%id:~42,7%-%id:~49,7%-%id:~56,7%)> id.txt)
start id.txt&timeout 2 >nul&del /f /q %windir%\system32\id.txt
c
==========================================================================================================================================================
OFFICE 2019 Retail
START /MAX NOTEPAD
set key=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX   
cls
set v=6
if exist "%ProgramFiles%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office1%v%"
if exist "%ProgramFiles(x86)%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office1%v%" 
Cscript.exe OSPP.vbs /unpkey:8MBCX >nul 2>&1
Cscript.exe OSPP.vbs /inpkey:%key% >nul 2>&1
cscript //nologo ospp.vbs /dinstid>Office_Installation_ID.txt
start Office_Installation_ID.txt
@

Office 2016 ProPlus Retail 
set key=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
set v=6
if exist "%ProgramFiles%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office1%v%"
if exist "%ProgramFiles(x86)%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office1%v%" 
Cscript.exe OSPP.vbs /unpkey:BTDRB
Cscript.exe OSPP.vbs /inpkey:%key% 
for /f "tokens=8" %i in ('cscript.exe OSPP.vbs /dinstid') do set id=%i
if %v% LEQ 4 ((echo Key: %key%&echo.&echo Installation ID: %id:~0,6%-%id:~6,6%-%id:~12,6%-%id:~18,6%-%id:~24,6%-%id:~30,6%-%id:~36,6%-%id:~42,6%-%id:~48,6%)> id.txt) else (
(echo Key: %key%&echo.&echo Installation ID: %id:~0,7%-%id:~7,7%-%id:~14,7%-%id:~21,7%-%id:~28,7%-%id:~35,7%-%id:~42,7%-%id:~49,7%-%id:~56,7%)> id.txt)
start id.txt&timeout 2 >nul&del /f /q %windir%\system32\id.txt
cls

Office 2013 ProPlusMSDNR_Retail
Set key=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Set v=5
if exist "%ProgramFiles%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office1%v%"
if exist "%ProgramFiles(x86)%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office1%v%"
Cscript.exe OSPP.vbs /unpkey:27GXM
Cscript.exe OSPP.vbs /inpkey:%key%
for /f "tokens=8" %i in ('cscript.exe OSPP.vbs /dinstid') do set id=%i
if %v% LEQ 4 ((echo Key: %key%&echo.&echo Installation ID: %id:~0,6%-%id:~6,6%-%id:~12,6%-%id:~18,6%-%id:~24,6%-%id:~30,6%-%id:~36,6%-%id:~42,6%-%id:~48,6%)> id.txt) else (
(echo Key: %key%&echo.&echo Installation ID: %id:~0,7%-%id:~7,7%-%id:~14,7%-%id:~21,7%-%id:~28,7%-%id:~35,7%-%id:~42,7%-%id:~49,7%-%id:~56,7%)> id.txt)
start id.txt&timeout 2 >nul&del /f /q %windir%\system32\id.txt
cls


Office 2010 Retail
Set key=7PXYK-9CXTF-6JHGT-XDM4W-2TGR8
Set v=4
if exist "%ProgramFiles%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office1%v%"
if exist "%ProgramFiles(x86)%\Microsoft Office\Office1%v%\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office1%v%"
Cscript.exe OSPP.vbs /unpkey:CDCR6
Cscript.exe OSPP.vbs /inpkey:%key%
for /f "tokens=8" %i in ('cscript.exe OSPP.vbs /dinstid') do set id=%i
if %v% LEQ 4 ((echo Key: %key%&echo.&echo Installation ID: %id:~0,6%-%id:~6,6%-%id:~12,6%-%id:~18,6%-%id:~24,6%-%id:~30,6%-%id:~36,6%-%id:~42,6%-%id:~48,6%)> id.txt) else (
(echo Key: %key%&echo.&echo Installation ID: %id:~0,7%-%id:~7,7%-%id:~14,7%-%id:~21,7%-%id:~28,7%-%id:~35,7%-%id:~42,7%-%id:~49,7%-%id:~56,7%)> id.txt)
start id.txt&timeout 2 >nul&del /f /q %windir%\system32\id.txt
cls

Nhận xét