# Get license key with sript

**URL:** <https://forum.inductiveautomation.com/t/get-license-key-with-sript/69494>\
**Category:** Ignition\
**Created:** [February 6, 2023, 6:26pm UTC](https://forum.inductiveautomation.com/t/get-license-key-with-sript/69494 "2023-02-06T18:26:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicholas.robinson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas.robinson/32/22188_2.png) [@nicholas.robinson](https://forum.inductiveautomation.com/u/nicholas.robinson)\
**Post date:** [February 6, 2023, 6:26pm UTC](https://forum.inductiveautomation.com/t/get-license-key-with-sript/69494/1 "2023-02-06T18:26:13Z")

</div>

Does anyone have a script on hand for getting the license key installed in the gateway with gateway scripting?

Thanks,

Nick

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 6, 2023, 6:34pm UTC](https://forum.inductiveautomation.com/t/get-license-key-with-sript/69494/2 "2023-02-06T18:34:19Z")

</div>

Start by getting the [license manager](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.1/com/inductiveautomation/ignition/gateway/model/GatewayContext.html#getLicenseManager()) from the gateway context. (Look around on the forum for the starting point, or use [Paul's extension module](https://github.com/IgnitionModuleDevelopmentCommunity/ignition-extensions). It is deliberately undocumented and its use unsupported.)
