Skip to main content
Inspiring
July 12, 2023
Question

No Way to Manually Deactivate a License?

  • July 12, 2023
  • 1 reply
  • 1967 views

Is there really no way to manually deactivate a CF License for CF2021?  There is a way to activate via saved json files, but there is none for deactivation.  My server is isolated and cannot access the internet due to security issues.

    This topic has been closed for replies.

    1 reply

    Vikram Kumar M
    Community Manager
    Community Manager
    July 12, 2023

    Hi @Tom Woo ,

     

    Please try the Admin APIs to deactivate the license.

     

    <cfscript>
    adminObj = CreateObject("component","CFIDE.adminapi.administrator")
    adminObj.login("<admin-password>")
    licenseObj = CreateObject("component","CFIDE.adminapi.license")
    writedump(licenseObj)
    //activateResp = licenseObj.ACTIVATENOW("<serial-number>");
    //writedump(activateResp);
    deactivateResp = licenseObj.DEACTIVATENOW();
    Charlie Arehart
    Community Expert
    Community Expert
    July 12, 2023

    Vikram, that's great to hear if that would solve such a problem--but if the Admin API can do it, why the heck can't the Admin be set to allow it to be done? 🙂 And on the same lines, can you PLEASE get the Admin to allow folks to change the deployment profile (prod/test/qa/dev/dr)? That is asked only at installation and can otherwise be changed only by knowing how to edit the licenseinfo.properties file in the cf lib folder.

    People shouldn't need to know these magic incantations to solve common problems (introduced since the activation feature was added with CF2021).

    /Charlie (troubleshooter, carehart. org)