5 Replies Latest reply on Nov 11, 2012 6:34 PM by JDarrah

    Variables within a template aren't recognized


      Hi all,


      In our company we use LANDesk provisioning to install devices.

      We've got a template which uses several variables, for f.i. username / password, shares, etc

      In our environment we have multiple PXE reps.

      The case is that sometimes the variables aren't recognized, example is when we want to Map a drive, the action fails.


      Any idea's what we can do to troubleshoot this?

        • 1. Re: Variables within a template aren't recognized

          Have you tried using Public Variables for mapping drives. To me it seems that the Template Variables are more a find and replace. For example you would have a public variable for \\SERVERXYZ\\SOFTWARE = SERVERSHARE so in your map drive action you would have %SERVERSHARE%.


          If you were to clone that template and setup a Template Variable for another site you could say search value SERVERSHARE is replaced with \\DIFFERENTSERVER\SOFTWARE


          That is how we use them. Public Variable for mapped drives to be used in various templates, then use Template Variable to replace the value if needs to be directed to an off-site server and so on. Hope this makes sense.

          1 of 1 people found this helpful
          • 2. Re: Variables within a template aren't recognized

            Thanks for the reply Ascott860.  Kevlar and I are working on this issue together.  I believe we are already doing what you suggested.  Here is the ouput during the provisioning process and below that is the xml of the script for the section that it is failing.  Keep in mind, this same template works fine on all of our provisioning server except for 2.


            Post converted to PDF and attached for Migration.

            More details available here: https://community.ivanti.com/docs/DOC-71280

            • 3. Re: Variables within a template aren't recognized
              Tom Farrugia SupportEmployee

              One thing to remember is that variables are case sensitive.  Could that be the issue?

              • 4. Re: Variables within a template aren't recognized

                The 'funny' thing is, that it is only sometimes that it doesn't work, and on some sites it never works. Even at the main site where it should always work, it gives problems every now and again.

                We don't change the variables, so they should be good basically. However I think that somehow they cannot be read or something

                • 5. Re: Variables within a template aren't recognized

                  Since it's failing when trying to map the drive, here is what we ran into...


                  If the date/time are not correct in the BIOS of the machine being reimaged, then LANDesk's command that they use to map drives (Drvmap.exe) will fail.  In my experience, it will try multiple times and eventually lock out the account being used to map the drives (which makes it fail at all sites until the account unlocks again).  Of course, that depends on the settings you have for AD accounts (lock machine after x failed attempts)