How to Fix OSPP.VBS Activation Status Error -2147217394 in Microsoft 365 Apps
Question details
The user is attempting to check the activation status of Microsoft 365 Apps using a command-line script but encounters a specific error code.

- Product
- Microsoft 365 Apps
- Device & OS
- not provided
- Scenario
- Checking license and activation information using the legacy OSPP.VBS command-line diagnostic script.
- Observed behavior
- Running the command 'cscript OSPP.VBS /dstatus' returns error code -2147217394 instead of displaying the application's activation status.
Ensure you are logged into your computer with an administrator account and have an active internet connection before running diagnostic scripts or adjusting activation settings.
Check Activation Status via Office Application Account Settings
The most reliable and user-friendly way to verify Microsoft 365 activation status is through the built-in account menu rather than using legacy command-line scripts.
Microsoft 365 Apps now utilize a different licensing and diagnostic method, making the old OSPP.VBS script obsolete for newer installations. Checking the status directly in the application interface avoids script compatibility errors.
Launch any Microsoft 365 application installed on your device, such as Microsoft Word or Microsoft Excel.
Click on the 'File' tab located in the top-left corner of the application ribbon.
Select 'Account' from the left-hand navigation pane.
Review the 'Product Information' section on the right side of the screen to confirm your product version, account details, and current activation status.

Run the vnextdiag.ps1 PowerShell Script
If you prefer command-line tools or need to check activation programmatically, use the updated PowerShell script provided by Microsoft.
Troubleshoot Network and Proxy Configurations
If your Office applications display an activation warning in the Account menu, your network or proxy settings might be blocking communication with Microsoft's licensing servers.
Avoid Activation Errors with WPS Office
Instead of struggling with complex activation scripts and legacy licensing errors in Microsoft 365, switch to WPS Office. It provides a lightweight, highly compatible office suite for all your document needs without the persistent activation hassle.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button to get the setup file.
- 2. Install WPS Office: Run the lightweight installer and follow the simple on-screen instructions to set up the software.
- 3. Start Creating Documents: Open WPS Office and instantly start creating, editing, and saving your documents without activation roadblocks.

Frequently Asked Questions
Why does OSPP.VBS /dstatus return error -2147217394?
This error occurs because Microsoft 365 Apps have transitioned to a newer licensing mechanism, making the legacy OSPP.VBS script incompatible for checking activation status on newer installations.
Where can I find the vnextdiag.ps1 script?
The vnextdiag.ps1 script is typically located in the Office installation folder under Program Files, specifically where Microsoft Office deployment and modern licensing tools are installed.
Does error -2147217394 mean my Microsoft 365 is deactivated?
Not necessarily. If you open Word or Excel and check File > Account, your product may still show as fully activated. The error often just reflects the OSPP script failing to read the new license format.
How do I check if my Microsoft Office is activated without using scripts?
Simply open any Office application like Word, click on the File tab, and select Account. The Product Information section on the right side will clearly display your current activation status.




