# Force Gateway to Trial Mode Expired

**URL:** <https://forum.inductiveautomation.com/t/force-gateway-to-trial-mode-expired/49483>\
**Category:** Module Development\
**Created:** [August 2, 2021, 10:11pm UTC](https://forum.inductiveautomation.com/t/force-gateway-to-trial-mode-expired/49483 "2021-08-02T22:11:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam1](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@sam1](https://forum.inductiveautomation.com/u/sam1)\
**Post date:** [August 2, 2021, 10:11pm UTC](https://forum.inductiveautomation.com/t/force-gateway-to-trial-mode-expired/49483/1 "2021-08-02T22:11:50Z")

</div>

Hi everyone,

We are in the process of testing the licensing system for our module and it’s become apparent that we could speed up testing if there was a way to force the trial mode to expire.

Is there a way to do this? Otherwise, does anyone have any tips on speeding up this process?

Thanks

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [August 2, 2021, 10:13pm UTC](https://forum.inductiveautomation.com/t/force-gateway-to-trial-mode-expired/49483/2 "2021-08-02T22:13:29Z")

</div>

Return the licence back to IA. Gateway, config, license, unactivate

---

<div class="post-metadata">

**Author:** ![sam1](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@sam1](https://forum.inductiveautomation.com/u/sam1)\
**Post date:** [August 2, 2021, 10:15pm UTC](https://forum.inductiveautomation.com/t/force-gateway-to-trial-mode-expired/49483/4 "2021-08-02T22:15:32Z")

</div>

Thanks for your response. Apologies, my original question was phrased incorrectly.

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [August 2, 2021, 10:15pm UTC](https://forum.inductiveautomation.com/t/force-gateway-to-trial-mode-expired/49483/5 "2021-08-02T22:15:51Z")

</div>

Yes I see you edited your post from “licensed” to “trial mode expiration”, ehm, dunno, try advance the PC clock?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 2, 2021, 10:21pm UTC](https://forum.inductiveautomation.com/t/force-gateway-to-trial-mode-expired/49483/6 "2021-08-02T22:21:49Z")

</div>

`DEMOTIMEREMAINING` is an integer stored in the `SysProps` table in the IDB. You could construct a .gwbk with a minimal demo time remaining. (Or just modify it and restart the gateway, if it’s a test system).

And, before anyone gets any fun ideas - setting it higher than 2 hours will be ignored 🙂

Technically, you don’t have to restart the gateway - there’s a method on the implementation of `LicenseManager` that’ll expire the trial then-and-there. However, I don’t know how well tested that is, and it relies on an internal class that’ll be annoying to access from scripting/your module.
