cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Click the menu, type cmd , right-click Command Prompt , and select Run as administrator .
C:\Program Files\Microsoft Office\Office14\ 2. Checking the Click-to-Run Directory
dir ospp.vbs
cscript ospp.vbs /sethst:kms.contoso.com cscript ospp.vbs /setprt:1688
If you need to remove a product key for any reason, first run cscript ospp.vbs /dstatus to get the last five digits of the installed key, then run:
Forces Office to contact the activation servers immediately. cscript ospp.vbs /act download ospp.vbs
If you are searching to , you do not actually need to download it from an external website because the file is already built into your Microsoft Office installation . Downloading ospp.vbs from third-party sites poses significant security risks, as these files are frequently packaged with malware or malicious activation exploits.
Type:
The ospp.vbs file is automatically included with every local installation of Microsoft Office (including Office 2013, 2016, 2019, 2021, and Microsoft 365). cscript ospp
Tools to manage volume activation of Office - Microsoft Learn
For older versions like Office 2010, you would look in an Office14 folder. If the file is still missing, your Office installation may be damaged or incomplete, which brings us to troubleshooting.
( Note: Office16 = Office 2016/2019/2021. For older versions, it may be Office14 or Office15 . ) Tools to manage volume activation of Office -
If you have installed Office from the Microsoft Store or a subscription-based version (Microsoft 365 Apps), the ospp.vbs script will likely be present. It is designed specifically for Volume Licensed versions of Office, such as Office LTSC 2024, Office LTSC 2021, Office 2019, and Office 2016.