cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX Quick repair (no internet required):

Note: Most advanced O365 admin tasks (user creation, license assignment) require , not Cmd. However, Cmd is useful for installation and basic repair. Managing Office 365 from Command Prompt (Cmd) 1. Install Office 365 (Click-to-Run) You need the Office Deployment Tool (ODT) . Download it from Microsoft, then extract setup.exe .

setup.exe /configure installConfig.xml

cd "C:\Program Files\Microsoft Office\root\Office16" cscript ospp.vbs /act

"C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" /repair quick

"C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" /repair online Remove all existing licenses:

cd "C:\Program Files\Microsoft Office\root\Office16" cscript ospp.vbs /rearm cd "C:\Program Files\Microsoft Office\root\Office16" cscript ospp.vbs /dstatus Or:

setup.exe /download downloadConfig.xml Activation is usually automatic when a licensed user signs in. To force activation via Cmd: