Skip to main content
Inspiring
Jul 12, 2023 7:49 PM UTC
Question

No Way to Manually Deactivate a License?

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 is closed to new replies. Start a new post to keep the conversation going.

    8 replies

    Vikram Kumar M
    Inspiring
    Jul 12, 2023 8:02 PM UTC

    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();
    Translate
    Charlie Arehart
    Community Expert
    Community Expert
    Jul 12, 2023 8:51 PM UTC

    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).

    Translate
    /Charlie (troubleshooter, carehart. org)