Kaseya Community

Import Old Script into K2

  • OK, I'm brain dead.

    Here's an old V5 script, it won't import into K2 via pasting.

    What am I missing? I used to do this all of the time, but have forgotten the secret sauce.

    Script Name: MalwareBytes Install
    Script Description: Install Malware Bytes on a remote system (Not for 64-bit
    systems!!!)

    IF Check Registry Value
    Parameter 1 : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
    Manager\Environment\PROCESSOR_ARCHITECTURE
    = :x86
    THEN
    Execute Script
    Parameter 1 : MalwareBytes Install 2 (NOTE: Script reference is NOT
    imported. Correct manually in script editor.
    Parameter 2 :
    Parameter 3 : 0
    OS Type : 1
    ELSE
    Write Script Log Entry
    Parameter 1 : Malware Bytes is only supported on 32-bit systems.
    Installation aborted
    OS Type : 1

  • Hi John,

    I know it would be nicer to import but I would suggest rewriting into K2 due to it now allowing multiple If's you can reduce it down to 1 script instead of having script 1 calling script 2 and so on.