cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /act

cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /act

cscript slmgr.vbs /ato


Copy and run the command below. Note: Office16 is code name of Office 2016. If you are using Office 2013/2010, just replace it with Office15 and Office14