Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Microsoft Office / How to Extend Office 2021/2019/2016 & Office 365 Trial Period

June 8, 2023 Microsoft Office

How to Extend Office 2021/2019/2016 & Office 365 Trial Period

When installing Office 2022/2019/2016 or Office 365, a user is offered to try the product for free for 30 days. After 30 days, your trial version of Office will expire and Office functionality will be partially blocked. The user will be prompted to purchase a license and activate the product (using a retail/MAK key or via Office KMS activation), or to uninstall Office completely. However, there is a little trick that allows you to extend your Microsoft Office free trial period up to 120 days.

your trial has expired office 2016 / 365

Your trial has expired
Most of the features of Office Preview have been disabled. Choose an option below to reactivate.

Using OsppRearm.exe Tool to Reset MS Office Activation Grace Period

The MS Office package (both the classic MSI package of Office 2016/2013/2010 and the Click2Run distribution of Office 2021/2019/Office 365) includes a special ospprearm.exe tool, which is located in the directory:

  • On 64-bit Windows versions with 32-bit Office version installed — %SystemDrive%\Program Files (x86)\Microsoft Office\Office16
  • In other cases — %SystemDrive%\Program Files\Microsoft Office\Office16
Note. Sometimes the file may be located in:

%SystemDrive%\Program Files (x86)\Common Files\Microsoft shared\OfficeSoftwareProtectionPlatform\
Or
%SystemDrive%\Common Files\Microsoft shared\OfficeSoftwareProtectionPlatform\

In any case, you can try to find the location of the ospprearm.exe file manually.

ospprearm.exe - tool to extend office trial

Close all MS Office applications, the command prompt as an administrator, and go to the ospprearm tool folder:

cd %SystemDrive%\Program Files (x86)\Microsoft Office\Office16
To extend your trial version of Office for 30 days, run this command:
OSPPREARM.EXE

Microsoft Office rearm successful

The following message will appear:

Microsoft Office rearm successful

If several different versions of MS Office are installed on the computer, an error will appear when running the ospprealm command.

There was an error when trying to rearm Office. You can try passing the SKU ID as a parameter. Passing the SKU ID is necessary if you are relying on an activation to permit an additional rearm.

Error: 0xc004f025

You need to specify the SKU ID of the Office version you want to rearm. List all Office SKUIDs on a computer:

cscript ospp.vbs /dstatus

ospp.vbs get ms office sku id

Copy the SKUID and provide it as an argument to the command:

OSPPREARM.EXE d450596f-894d-49e0-966a-fd39ed4c4c64

You can also renew the Office trial license using the built-in slmgr.vbs tool:

cscript slmgr.vbs /rearm-app <Application ID>

You can get the application ID from the results of the slmgr.vbs /dlv all command.

Please note that this license rearm method is only suitable for corporate versions of Office 2019/2016 and Office 365 licensed under the Volume Licensing (Standard, ProPlus, and Enterprise editions). You can reset the free trial period in retail editions (Home, Personal, University, etc.) only once. More on this below.

Thus, you rearm your Office copy and extend the free trial to 30 days. You can run this command up to three (3) times before the trial expires. Thus, you can extend the total time of using the Office 2019/2016/365 trial version up to 120 days (4 * 30 days). You can check the current Office activation status and the number of days remaining until the end of the grace period as follows.

cd %SystemDrive%\Program Files (x86)\Microsoft Office\Office16
cscript ospp.vbs /dstatus

LICENSE DESCRIPTION: Office 16, Retail(grace) channel
LICENSE STATUS: ----OOB_GRACE----
ERROR CODE: 0x4004F00C
ERROR DESCRIPTION: The software Licensing Service reported that the application is running within the valid grace period.
REMAINING GRACE: 4 days (6499 minutes before expiring)

In this example, you can see that you have installed a trial version of Microsoft Office 2016 and there are 4 days left before the trial period ends.

ospp.vbs dstatus Office16ProPlusR_Grace remaining

When running the ospprearm.exe command:

  • The trial period counter for Office resets to 30 days. The activation timer is frozen until the first launch of any of the Office apps;
  • The computer CMID is reset (the KMS server determines unique clients according to CMID. You can check the current CMID of the computer using the ospp.vbs script – see the KMS activation FAQ).
Tip. This opportunity to extend the Office trial period is documented on the Microsoft website. However, it may be considered a violation of the license agreement. So you postpone the activation at your own risk. You can rearm your Office 2010/2013 trial in the same way.

Rearming Microsoft Office: Retail vs. Volume Edition

There are differences in extending the activation grace period in Retail and corporate (Volume) editions of Office. To understand which edition of MS Office is installed on your computer, open a command prompt and run the commands:

cd c:\Windows\System32
cscript slmgr.vbs /dlv all

This command will display information about all Microsoft products on your computer. Find the section in the list that refers to MS Office. For example, for Office 2019, you need to find the line:

Name: Office 19, Office19ProPlus2019xxx

In this example, the retail trial edition of Office is installed on the computer (Description: Office 19, RETAIL Grace channel). You can extend the trial period only 1 time (Remaining App rearm count: 1). The remaining period of use is 5 days.

office retail edition rearm count

If a corporate edition of Office 2019 is installed on the computer, for example, Office 19, Office19ProjectPro2019VL_KMS_Client_AE editionthen its description should look like Office 19, VOLUME_KMSCLIENT channel or Office 19, VOLUME_KMSCLIENT channel. The remaining trial period is 30 days, you can renew the license up to 3 times (Remaining App rearm count: 3).

office volume edition remaining app rearm count

Each time the license is extended via ospprearm.exe, the counter is decremented by 1. If the remaining number of rearms for the Office trial license is 0, you will receive error 0xc004d307 when running OSPPREARM.EXE.

There was an error when trying to rearm Office. You can try passing the SKU ID as a parameter. Passing the SKU ID is necessary if you are relying on an activation to permit an additional rearm.
Error: 0xc004d307
On a computer running Microsoft Windows non-core edition, run 'slui.exe 0x2a 0xc004d307' to display the error text.
Windows Activation. An error has occurred.
Description: The security processor reported that the maximum allowed number of re-arms has been exceeded.  You must re-install the OS before trying to re-arm again.

microsoft office 2019 rearm error 0xc004d307

Resetting a trial Office license using ospprearm.exe is useful if you are preparing a Windows reference image with Office preinstalled to deploy on a users’ computers via WDS, SCCM, or to manually install the image. Before capturing a reference Windows image, you need to reset the activation counter with the ospprearm.exe command (and do not start any Office apps until the Windows image capture is complete). In this case, after deploying the Windows image on the user’s computer and after the first launch of any Office application, you can use Office without activation and restrictions for a full 30 days.

12 comments
5
Facebook Twitter Google + Pinterest
previous post
Installing PowerShell Modules in Offline Mode (Without Internet Access)
next post
Updating List of Trusted Root Certificates in Windows

Related Reading

Remove ‘Your License isn’t Genuine’ Banner in MS...

April 21, 2025

Hardware Graphics Acceleration Causes Visual Glitches in Microsoft...

December 23, 2024

Rollback Microsoft Office to an Earlier Version After...

December 10, 2024

Automatic Outlook User Profile Configuration with ZeroConfigExchange

May 21, 2024

How to Copy/Paste to MS Word without Losing...

May 17, 2024

12 comments

Andrzej July 23, 2019 - 2:41 pm

its not work now!

Reply
WAQUAR AHSAB October 29, 2019 - 10:14 am

The trial did not extend instead office 2016 was not activated after that.

Reply
Ilie December 29, 2019 - 2:01 pm

Thanks. It worked : )

Reply
Neville September 9, 2021 - 9:27 am

i get an error:
PS C:\Program Files\Microsoft Office\Office16> .\OSPPREARM.EXE
There was an error when trying to rearm Office. You can try passing the SKU ID as a parameter. Passing the SKU ID is necessary if you are relying on an activation to permit an additional rearm.
Error: 0xc004f025
On a computer running Microsoft Windows non-core edition, run ‘slui.exe 0x2a 0xc004f025’ to display the error text.
PS C:\Program Files\Microsoft Office\Office16>

Is that because I did not get the Software expired message as yet?

Reply
Danarman September 30, 2021 - 4:28 pm

Open a Command Prompt as Administrator and enter path where OSPPREARM.EXE is installed.
There run:
cscript ospp.vbs /dstatus
You’ll obtain the SKU ID of your office.
Then repeat the OSPPREARM.EXE but with the resulting SKU ID as parameter. Example:

C:\Program Files (x86)\Microsoft Office\Office16>OSPPREARM.EXE dxxxxxxf-8xxd-4xx0-xxxx-fxxxxxxxxxx4
Microsoft Office rearm successful.

Reply
Zan February 15, 2022 - 1:22 am

Is there a way to increase the counter so we get infinite trial resets?

Reply
Zan February 15, 2022 - 1:26 am

also, it says rearm is successful but when I open up word, everything is still locked and I can’t type anything or edit anything unless I either sign in or enter product key. how to fix?

Reply
Zan February 15, 2022 - 1:31 am

that slmgr.vbs /dlv all gives me a huge windows script host window with no scrollbar to the sides so much of the information is cut off unless you have a huge portrait monitor with huge height resolution, which one am I suppose to choose?

Reply
Zan February 15, 2022 - 1:59 am

ok so I tried cscript slmgr.vbs /rearm-app 3ad61e22-e4fe-497f-bdb1-3e51bd872173 and all I get is c:\Windows\System32\slmgr.vbs(1852, 5) SWbemObjectEx: 0xC004F015 and then checking the status with cscript ospp.vbs /dstatus, I get:
—Processing————————–
—————————————
PRODUCT ID: 00202-30000-00000-AA921
SKU ID: 3ad61e22-e4fe-497f-bdb1-3e51bd872173
LICENSE NAME: Office 16, Office16O365ProPlusR_Grace edition
LICENSE DESCRIPTION: Office 16, RETAIL(Grace) channel
BETA EXPIRATION: 1/01/1601
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: VMFTK
—————————————
—————————————
—Exiting—————————–

Reply
monet February 24, 2022 - 11:29 am

Is there a way to do this on a Mac?

Reply
Tiks January 23, 2024 - 5:50 pm

I have this error:
C:\Program Files\Microsoft Office\Office16>OSPPREARM.EXE fbdb3e18-a8ef-4fb3-9183-dffd60bd0984
There was an error when trying to rearm Office. You can try passing the SKU ID as a parameter. Passing the SKU ID is necessary if you are relying on an activation to permit an additional rearm.
Error: 0xc004d307
On a computer running Microsoft Windows non-core edition, run ‘slui.exe 0x2a 0xc004d307’ to display the error text.

Reply
getrin July 24, 2024 - 1:38 am

solution for this please

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMware
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025
  • How to Write Logs to the Windows Event Viewer from PowerShell/CMD

    March 3, 2025
  • How to Hide (Block) a Specific Windows Update

    February 25, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Fix: Signature Button Not Working in Outlook 2019/2016/365
  • Outlook Keeps Asking for Password on Windows
  • Microsoft Office Volume Activation Using KMS Server
  • Installing an Open Source KMS Server (Vlmcsd) on Linux
  • How to Completely Uninstall Previous Versions of Office with Removal Scripts
  • How to Manually Configure Exchange or Microsoft 365 Account in Outlook 365/2019/2016
  • Read and Write Excel (XLSX) Files with PowerShell
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top