1 Reply Latest reply on Jul 18, 2012 9:48 AM by lundb

    Help needed with %appdata% variable Win7

    Rookie

      Hello,

       

      I've tried to build a batch file package which should copy some config files to local user folder in Windows 7 (C:\Users\<username>\AppData\Roaming\).

       

      This "cries" for using the %appdata% variable and I've packaged the batch file with the option for using logged in user account, not the local system account.

      But the provisioning task fails, not the task itself, it resumes with successful state but the files are not copied in the user directory but to anywhere else.

       

      We are using Landesk Coreserver 9.0 SP2 and at the moment its not possible upgrading to SP3, I hope thats not the causing problem.

       

      See my batch:

       

      @echo on

      xcopy \\sr-ld9\sw\infostore_documentviewer\config\ini\*.* %appdata% /e /h /r /y

       

      This is the log file from the client:

       

      Wed, 18 Jul 2012 10:26:23 Checking preferred server path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat instead of \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:23 Path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat was redirected to \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:23 File (\\sr-ld9\sw\Infostore_Documentviewer\configtest.bat) is not in cache

      Wed, 18 Jul 2012 10:26:23 Checking preferred server path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat instead of \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:23 Path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat was redirected to \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:25 Performing TCP connection with a timeout of -1 milliseconds

      Wed, 18 Jul 2012 10:26:27 Checking preferred server path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat instead of \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:27 Path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat was redirected to \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:27 ILdDownloading file to C:\Program Files\LANDesk\LDClient\sdmcache\ldlogon\FileLists\taskmanifest.SR-LD9.989.277.ini, attempt 0

      Wed, 18 Jul 2012 10:26:29 ILdDownloadFile returned 0

      Wed, 18 Jul 2012 10:26:29

       

      Downloading file \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat (mJ6c/xvYZj9n88TPbmDUbA==, 3)

      Wed, 18 Jul 2012 10:26:29 Downloading file 1 of 1 from '\\sr-ld9\sw\Infostore_Documentviewer\configtest.bat'

      Wed, 18 Jul 2012 10:26:29 Checking recently used server path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat instead of \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:29 Path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat was redirected to \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:29 processing of package is complete, result 229392397 (0x0dac400d - code 16397)

       

      Wed, 18 Jul 2012 10:26:29 Checking recently used server path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat instead of \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:29 Path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat was redirected to \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:29 File (\\sr-ld9\sw\Infostore_Documentviewer\configtest.bat) is cached locally

      Wed, 18 Jul 2012 10:26:29 Checking recently used server path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat instead of \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:29 Path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat was redirected to \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:29 Checking recently used server path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat instead of \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:29 Path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat was redirected to \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:29 ILdDownloading file to C:\Program Files\LANDesk\LDClient\sdmcache\ldlogon\FileLists\taskmanifest.SR-LD9.989.277.ini, attempt 0

      Wed, 18 Jul 2012 10:26:30 ILdDownloadFile returned 0

      Wed, 18 Jul 2012 10:26:30

       

      Downloading file \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat (mJ6c/xvYZj9n88TPbmDUbA==, 3)

      Wed, 18 Jul 2012 10:26:30 Downloading file 1 of 1 from '\\sr-ld9\sw\Infostore_Documentviewer\configtest.bat'

      Wed, 18 Jul 2012 10:26:30 Checking recently used server path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat instead of \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:30 Path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat was redirected to \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:30 Batch file Client Thread

      Wed, 18 Jul 2012 10:26:30 PackagePath:     [\\sr-ld9\sw\Infostore_Documentviewer\configtest.bat]

      Wed, 18 Jul 2012 10:26:30 Checking recently used server path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat instead of \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:30 Path \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat was redirected to \\sr-ld9\sw\Infostore_Documentviewer\configtest.bat

      Wed, 18 Jul 2012 10:26:30 Launch failed GetTokenInformation - err=1312

      Wed, 18 Jul 2012 10:26:30 Vista32 use system environment only

      Wed, 18 Jul 2012 10:26:30

      Wed, 18 Jul 2012 10:26:30 Bat file output :

       

      C:\Program Files\LANDesk\LDClient\sdmcache\sw\Infostore_Documentviewer>call "configtest.bat" 

       

       

       

      C:\Program Files\LANDesk\LDClient\sdmcache\sw\Infostore_Documentviewer>xcopy \\sr-ld9\sw\infostore_documentviewer\config\ini\*.*  /e /h /r /y

       

      \\sr-ld9\sw\infostore_documentviewer\config\ini\Solitas\FONTMAP.INI

       

      \\sr-ld9\sw\infostore_documentviewer\config\ini\Solitas\ISRANY.INI

       

      \\sr-ld9\sw\infostore_documentviewer\config\ini\Solitas\ISRCMN.INI

       

      \\sr-ld9\sw\infostore_documentviewer\config\ini\Solitas\isrfonts.ini

       

      4 Datei(en) kopiert

       

       

       

      C:\Program Files\LANDesk\LDClient\sdmcache\sw\Infostore_Documentviewer>"C:\Program Files\LANDesk\LDClient\sdistbat.exe" /setbatchstatus=0

       

       

      Wed, 18 Jul 2012 10:26:30 Installation result DB50000

      Wed, 18 Jul 2012 10:26:32 processing of package is complete, result 229965824 (0x0db50000 - code 0)

       

      Every help appreciated.

      Thanks, Ulrich

        • 1. Re: Help needed with %appdata% variable Win7
          Apprentice

          I highly recommend upgrading to LDMS9 sp3. There were several known issues resolved associated with OSD & Provisioning, as well as enhancements.

          Based on your description, it sounds like the batch file works when distributed as a software distribution task. One option you have is to configure the LANDesk Agent being installed with Provisioning to include a policy period on logon. Use the software package with policy delivery method.