1 Reply Latest reply on Oct 26, 2015 8:34 AM by nick.evans

    Is there a way to get an action to run based on whether a system is a laptop or desktop without building a script?

    Rookie

      I am trying to add an action towards the end of the provisioning process (System configuration section) to install encryption on laptops but not desktops.  I know in MDT or SCCM you can use variable ISLAPTOP or ISDESKTOP =TRUE or FALSE to limit the systems that will run that action.  Is there a simple way in LD 9.6 SP2 without building any scripts etc.?

        • 1. Re: Is there a way to get an action to run based on whether a system is a laptop or desktop without building a script?
          nick.evans SupportEmployee

          Hi JereL,

          You're asking for if-then logic which Provisioning does not currently have. It is a feature we are looking at introducing in LDMS 10 though.

          That being said, you could theoretically write it into a batch file that does the if/else logic, and calls the script accordingly.

           

          Example:

          Create a batch file that will check if laptop or desktop, and from the results have it call the script of choice.

          In provisioning copy the batch file from above to the client, and both laptop and desktop scripts (assuming you have one for each type).

          Then call to run the batch from above and it will do the if/else logic and provided you scripted it correctly, it would call the corresponding scripts for if it was a desktop or laptop.

          1 of 1 people found this helpful