Code nhập key Windows - Office.0
Code nhập key Windows - Office.0
Code nhập key Windows - Office.0
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