IT Management Suite

 View Only

  • 1.  ASDK 8.8.1 does not find Software Management License

    Posted 22 days ago

    Hi,

    I have an ASDK script that allows me to create task, filters, targets and policies.

    While trying to initialize Software Delivery Policy Management via

            set softwareDeliveryPolicyManagement = CreateObject("Altiris.ASDK.SWM.SoftwareDeliveryPolicyManagement")
            softwareDeliveryPolicyManagement.TargetServer = strServer
            softwareDeliveryPolicyManagement.Protocol = "HTTPS"
            softwareDeliveryPolicyManagement.Port = "443"
            'softwareDeliveryPolicyManagement.Authenticate()
            softwareDeliveryPolicyManagement.CreateLocalInstance()

    I get an error message, there is no valid license for Software management

        18.05.2026 12:32:52  Unhaldeled error -2146233088 occured.
        18.05.2026 12:32:52  Altiris.ASDK.SWM.COM:

            Failed to find assembly Altiris.ASDK.SWM, Version=8.0.0.0, Culture=neutral,  PublicKeyToken=cada0fbf7e0ab722 or

            type Altiris.ASDK.SWM.SoftwareTasksManagementLib.

            Exception: Unable to check for license 'ad3f5980-d9e9-11d3-a318-0008c7a09198'.

            Error: 'Object reference not set to an instance of an object.'.

        18.05.2026 12:32:52  Aborting Execution!

    This script is working for years now, but after installing a new server 8.8.1, it does not find the license, which I have.

    Could you please check this?

    Thanks.



    -------------------------------------------


  • 2.  RE: ASDK 8.8.1 does not find Software Management License

    Broadcom Employee
    Posted 22 days ago
    Hi Jan,
    Looks like issue may not related to license, but script unable to find correct references in GAC.
    Can you check that "Altiris.ASDK.SWM" and it redirection policies exist in "C:\Windows\Microsoft.NET\assembly\GAC_MSIL"
    And also it will be good to check if any related errors appeared in Log during installation.
    Also you can try some sample scripts from "<Altiris NS folder>\Altiris ASDK\Samples", if those will work, or also raises some errors.
    Thanks
    AlexTH
    -------------------------------------------



  • 3.  RE: ASDK 8.8.1 does not find Software Management License

    Posted 21 days ago

    Hi Alex,

    thank you for your ideas.

    The good things are, SIM shows no errors. Wasn't here a log for each MSI? The logs only show the web part.

    The DLL exists in "C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Altiris.ASDK.SWM"

    There is a sample script "D:\Altiris\Altiris ASDK\Samples\Software Management\vbs\policymanagement.vbs"

    Starting the script gives me the same error.

        PS D:\Altiris\Altiris ASDK\Samples\Software Management\vbs> cscript policymanagement.vbs
        Microsoft (R) Windows Script Host Version 10.0
        Copyright (C) Microsoft Corporation. All rights reserved.

        No argument passed, using assembly
        Using the local assembly
        D:\Altiris\Altiris ASDK\Samples\Software Management\vbs\policymanagement.vbs(35, 2) Altiris.ASDK.SWM.COM:

        Failed to find assembly Altiris.ASDK.SWM, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cada0fbf7e0ab722 or

        type Altiris.ASDK.SWM.SoftwareDeliveryPolicyManagementLib.

        Exception: Unable to check for license 'ad3f5980-d9e9-11d3-a318-0008c7a09198'.  

        Error: 'Object reference not set to an instance of an object.'.

    Thanks,

    Jan

    -------------------------------------------



  • 4.  RE: ASDK 8.8.1 does not find Software Management License

    Posted 21 days ago
    Edited by JanTorsten Hobohm 21 days ago

    Found the installation log files in localappdata of the application identity :)

    • symantec_asdkcomcombine_8_5_x86.msi_Install.log
    • symantec_asdkcomcombine_8_8_1_x64.msi_Install.log
    • symantec_asdkservercombine_8_8_1_x64.msi_Install.log

    I can not see an error, no custom action failed, no rollback, everthing fine. RC=0.

    -------------------------------------------



  • 5.  RE: ASDK 8.8.1 does not find Software Management License

    Posted 21 days ago
    Edited by JanTorsten Hobohm 21 days ago

    Found it...

    Every object can be initialized

    • ItemManagement
    • FilterManagement 
    • ScopingManagement 
    • SoftwareTasksManagement 
    • ResourceManagement 
    • SoftwareComponentManagement 
    • SoftwarePackageManagement 
    • SoftwareCommandLineManagement 
    • InventoryRuleManagement 
    • etc

    but not

    • SoftwareDeliveryPolicyManagement

    if I don't RUN THE SCRIPT WITH ELEVATED RIGHT.

    -------------------------------------------