GuideComputer SoftwareMicrosoft Office / Microsoft 365 Microsoft Office 365 Unlicensed Updated March 09 2026
If you have a valid license on the linked Microsoft account, but the local install doesn't recognize it:
Open Admin Command Prompt, change to the following folder (or similar depending on your version), the folder should have the file 'ospp.vbs' in it:
C:\Program Files\Microsoft Office\Office16
C:\Program Files (x86)\Microsoft Office\Office16

1: cscript ospp.vbs /dstatus

2: Run the following, changing ABCDE to the last 5 of the product key from the above command:
cscript ospp.vbs /unpkey:ABCDE

3: Restart the computer. You might only have to restart one of the Office apps instead of rebooting the whole computer, but if that doesn't work, restart the computer.

4: Open an office app and login to activate it.


https://community.spiceworks.com/how_to/48973-remove-and-re-add-license-key-for-office-2016-on-office-365




Usage
cscript ospp.vbs /Option:Value ComputerName User Password
ComputerName: Name of remote computer. If acomputer name is not passed local computer is used.
User: Account with required privilege on remote computer.
Password: Password for the account. If a User account and password are notpassed current credentials are used.
Value: Required for outlined options.


/act
Activate installedOffice product keys.

/inpkey:value
Install a product key(replaces existing key) with user-provided product key. Value parameterapplies.

/unpkey:value
Uninstall an installedproduct key with user-provided partial product key (as displayed by the /dstatus option). Valueparameter applies.

/inslic:value
Install a license withuser-provided path to the .xrm-ms license. Value parameterapplies.

/dstatus
Display license information for installed product keys.

/dstatusall
Display license information for installed licenses.

/dhistoryacterr
Display MAK/Retailactivation failure history.

/dinstid
Displayinstallation ID for offline activation.

/actcid:value
Activate product withuser-provided confirmation ID.Value parameter applies.

/rearm
Reset the licensing statusfor all installed Office product keys.

/rearm:value
Reset the licensingstatus for an Office license with user provided SKUID value (as displayed bythe /dstatus opton). Value parameterapplies.

/ddescr:value
Display thedescription for a user-provided error code. Value parameter applies.

KMS client /Options

/dhistorykms
Display KMS clientactivation history.

/dcmid
Display KMS client machineID (CMID).

/sethst:value
Set a KMS host namewith user-provided host name. Valueparameter applies.

/setprt:value
Set a KMS port withuser-provided port number. Valueparameter applies.

/remhst
RemoveKMS host name (sets port to default).

/cachst:value
Permit or deny KMS host caching. Value parameter applies (TRUE or FALSE).

/actype:value
Set volume activation type. Value parameter applies. (Windows 8 and above support only)
Values: 1 (for AD) or 2 (for KMS) or 3 (for Token) or 0 (forall).

/skms-domain:value
Set the specific DNS domain in which all KMS SRV records can befound. This setting has no effect if the specific single KMS host is set via/sethst option. Value parameter applies. (Windows 8 and above support only)
Value:FQDN

/ckms-domain
Clear the specific DNS domain in which all KMS SRV records canbe found. The specific KMS host will be used if set via /sethstoption. Otherwise default KMS auto-discovery will be used. (Windows 8 and above support only)

/dtokils
Display installedtoken-based activation issuance licenses.

/rtokil:value
Uninstall an installedtoken-based activation issuance license with user-provided license id (asdisplayed by the /dtokils option). Value parameterapplies.

/stokflag
Set token-basedactivation only flag. (Windows 7 support only)

/ctokflag
Clear token-basedactivation only flag. (Windows 7 support only)

/dtokcerts
Display token-basedactivation certificates.

/tokact:value1:value2
Token activate with a user-providedthumbprint (as displayed by the /dtokcerts option)and a user-provided PIN (optional). Valueparameter applies.

Search Keywords: Microsoft Office 365, Word, Excel, Outlook, Access, Activation, License, Unlicensed, Trial, Expired




©2024 - Some portions of this website are Copyrighted.
Your IP: 216.73.216.129     Referring URL:
Browser: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Terms and Conditions, Privacy Policy, and Security Policy