How to Remove License Key from Office 2016, 2019, 2021 or 2024 using CMD
Open Command Prompt as Administrator
To begin, you’ll need to open Command Prompt with administrative privileges. To do this, follow these steps:
- Press the Windows key.
- Type “cmd” or “Command Prompt” into the search bar.
- Right-click on “Command Prompt” in the search results.
- Select “Run as administrator.”
Use CD command to change directory to your Office installation directory:
For 32 Bits version of Office
CD C:\Program Files (x86)\Microsoft Office\Office16
For 64 Bits version of Office:
CD C:\Program Files\Microsoft Office\Office16To check Status:
cscript ospp.vbs /dstatus
To remove existing Product Key:
cscript ospp.vbs /unpkey:{last five characters of product key}
cd di chuyển đến thư mục
cd.. lùi lại 1 thư mục
cd\ quay về thư mục gốc (root)