Với Office 2019, muốn chuyển từ volume sang retail thì dùng mã này nhé!Có áp dụng được cho O2019 ko bác?
Mã:
set ver=16
if exist "%ProgramFiles%\Microsoft Office\Office%ver%\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office%ver%"
if exist "%ProgramFiles(x86)%\Microsoft Office\Office%ver%\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office%ver%"
for /f %i in ('dir /b ..\root\Licenses%ver%\ProPlus2019R_Retail*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses%ver%\%i"
for /f %i in ('dir /b ..\root\Licenses%ver%\ProPlus2019MSDNR*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses%ver%\%i"
exit