#KMS-server Client Execution script
#将以下内容另存为OFFICE 20,160 Sale Version convert large client version. BAT, run as Administrator
@ECHO off&pushd%~dp0
Setlocal enabledelayedexpansion&color 3e & cd/d "%~dp0" title OFFICE 20,160 Sales Conversion Large Client Edition
%1%2 mshta vbscript:createobject ("Shell.Application"). ShellExecute ("%~s0", "Goto:runas", "" "," RunAs ", 1) ( Window.close) &goto:eof:runas
If exist "%ProgramFiles%\Microsoft Office\office16\ospp.vbs" cd/d "%ProgramFiles%\Microsoft Office\Office16" if exist " %programfiles (x86)%\microsoft Office\office16\ospp.vbs "cd/d"%programfiles (x86)%\microsoft Office\Office16 "
: WH CLS Echo. echo Select the Office version number that you want to convert echo. Echo-------------------------------------------------------------------------------- echo 1. The retail version of OFFICE Pro Plus 2016 translates to the big client version of ECHO. echo 2. The retail edition of OFFICE Visio Pro 2016 translates to the large client version of ECHO. echo 3.The retail version of OFFICE Project Pro 2016 translates to the large client version of ECHO. Echo. -------------------------------------------------------------------------------- set/p tsk= " Please enter the Office version ordinal "carriage return" confirmation (1-3) that requires conversion: "If not defined tsk goto:err if%tsk%==1 goto:1 if%tsk%==2 goto:2 if%tsk%==3 goto:3
: Err Goto:wh
: 1 CLS
Echo is resetting OFFICE2016 retail activation ... cscript ospp.vbs/rearm
ECHO is installing KMS license ... for/f%%x in (' Dir/b. \root\licenses16\proplusvl_kms*.xrm-ms ') do cscript ospp.vbs/inslic: ". \root\licenses16\%%x ">nul
ECHO is installing MAK license ... for/f%%x in (' Dir/b. \root\licenses16\proplusvl_mak*.xrm-ms ') do cscript ospp.vbs/inslic: ". \root\licenses16\%%x ">nul
Echo is installing the KMS key ... cscript ospp.vbs/inpkey:xqnvk-8jydb-wj9w3-yj8yr-wfg99
Goto:e
: 2 CLS
Echo is resetting Visio2016 retail activation ... cscript ospp.vbs/rearm
ECHO is installing KMS license ... for/f%%x in (' Dir/b. \root\licenses16\visio??? Vl_kms*.xrm-ms ') do cscript ospp.vbs/inslic: ". \root\licenses16\%%x ">nul
ECHO is installing MAK license ... for/f%%x in (' Dir/b. \root\licenses16\visio??? Vl_mak*.xrm-ms ') do cscript ospp.vbs/inslic: ". \root\licenses16\%%x ">nul
Echo is installing the KMS key ... cscript ospp.vbs/inpkey:pd3pc-rhngv-fxj29-8jk7d-rjrjk
Goto:e
: 3 CLS
Echo is resetting Project2016 retail activation ... cscript ospp.vbs/rearm
ECHO is installing KMS license ... for/f%%x in (' Dir/b. \root\licenses16\project??? Vl_kms*.xrm-ms ') do cscript ospp.vbs/inslic: ". \root\licenses16\%%x ">nul
ECHO is installing MAK license ... for/f%%x in (' Dir/b. \root\licenses16\project??? Vl_mak*.xrm-ms ') do cscript ospp.vbs/inslic: ". \root\licenses16\%%x ">nul
Echo is installing the KMS key ... cscript ospp.vbs/inpkey:yg9nw-3k39v-2t3hj-93f3q-g83kt
Goto:e
: E Echo. echo conversion complete, press any key to exit! Pause >nul Exit
OFFICE 20,160 Sales conversion to large client edition