Skip to content

Instantly share code, notes, and snippets.

@luxin88
Created June 29, 2020 02:29
Show Gist options
  • Save luxin88/1c3f15e64268580d59da3e209b5e0ece to your computer and use it in GitHub Desktop.
Save luxin88/1c3f15e64268580d59da3e209b5e0ece to your computer and use it in GitHub Desktop.
PS C:\Program Files\Microsoft Office\Office16> cscript.exe .\OSPP.VBS /dstatus
Microsoft (R) Windows Script Host Version 5.812
版权所有(C) Microsoft Corporation。保留所有权利。
---Processing--------------------------
---------------------------------------
PRODUCT ID: 00413-50000-00000-AA773
SKU ID: 52c4d79f-6e1a-45b7-b479-36b666e0a2f8
LICENSE NAME: Office 19, Office19ProPlus2019R_Grace edition
LICENSE DESCRIPTION: Office 19, RETAIL(Grace) channel
BETA EXPIRATION: 1601/1/1
LICENSE STATUS: ---NOTIFICATIONS---
ERROR CODE: 0xC004F009
ERROR DESCRIPTION: The Software Licensing Service reported that the grace period expired.
Last 5 characters of installed product key: 8MBCX
---------------------------------------
PRODUCT ID: 00200-70000-00000-AA914
SKU ID: d7279dd0-e175-49fe-a623-8fc2fc00afc4
LICENSE NAME: Office 16, Office16O365HomePremR_Grace edition
LICENSE DESCRIPTION: Office 16, RETAIL(Grace) channel
BETA EXPIRATION: 1601/1/1
LICENSE STATUS: ---NOTIFICATIONS---
ERROR CODE: 0xC004F009
ERROR DESCRIPTION: The Software Licensing Service reported that the grace period expired.
Last 5 characters of installed product key: KHGM9
---------------------------------------
---------------------------------------
---Exiting-----------------------------
PS C:\Program Files\Microsoft Office\Office16> cscript.exe .\OSPP.VBS /unpkey:KHGM9
Microsoft (R) Windows Script Host Version 5.812
版权所有(C) Microsoft Corporation。保留所有权利。
---Processing--------------------------
---------------------------------------
Uninstalling product key for: Office 16, Office16O365HomePremR_Grace edition
<Product key uninstall successful>
---------------------------------------
---Exiting-----------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment