3 Replies Latest reply on Oct 9, 2008 7:06 AM by delhuskie

    install printers via a scheduled task

    Apprentice

      I am trying to run this command on a PC  start \\servername\printer  this works fine locally and in a batch file

       

      i tried to use the software dist. to deply this i created  a package based on the batch file the task completed but no printers were installed

      i the tried to create a generic dos task (  please see below ) scheduled this but again no printers were installed

       

      1. Can you tell me where i am going wrong

      2. What is the best way to complete this task ?

       

      Many thanks 

       

      [VALUES]
      Task=2
      ScriptName=Install Printers
      ScriptDescription=install printers
      AbortOnCmdFailure=0
      Command0=start \\twsouthamptonuk\SOTONP08
      Command1=start \\twsouthamptonuk\SOTONP09
      Command2=start \\twsouthamptonuk\SOTONP05
      [OWNER]
      GUID=da3138ba-c165-4646-8fc8-3ff3e7de5fe8
      OSDPLUG=TRUE
      DESCRIPTION=install printers
      NAME=Install Printers
      [JOBPARAM]
      TASK_COMPLETION_ENABLED=FALSE
      [MACHINES]
      REMMKDIR0=%LDMS_CLIENT_DIR%
      REMEXEC1=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/bootfile.exe"
      REMEXEC2=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/tlibr16.dll"
      REMEXEC3=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/tlibr32.dll"
      REMEXEC4=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/ldvboot.img"
      REMEXEC5=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/lddefrag.exe"
      REMEXEC6=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/nicinfo.exe"
      REMEXEC7=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/cicfgmgr.vxd"
      REMEXEC8=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/cindis.vxd"
      REMEXEC9=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/copyfile.exe"
      REMEXEC10=<qt/>%LDMS_CLIENT_DIR%\nicinfo.exe<qt/>
      REMEXEC11=<qt/>%LDMS_CLIENT_DIR%\nicinfo.exe<qt/> landesk
      REMEXEC12=<qt/>%LDMS_CLIENT_DIR%\nicinfo.exe<qt/> delpc
      REMEXEC13=<qt/>%LDMS_CLIENT_DIR%\nicinfo.exe<qt/> core=LANDESK
      REMEXEC14=<qt/>%LDMS_CLIENT_DIR%\copyfile.exe<qt/> <qt/>%LDMS_CLIENT_DIR%\ldvboot.img<qt/> <qt/>%LDMS_CLIENT_DIR%\dosnic.ini<qt/> \net\dosnic.ini
      REMEXEC15=<qt/>%LDMS_CLIENT_DIR%\copyfile.exe<qt/> <qt/>%LDMS_CLIENT_DIR%\ldvboot.img<qt/> <qt/>%LDMS_CLIENT_DIR%\lmhosts.ld<qt/> \net\lmhosts.
      REMEXEC16=<qt/>%LDMS_CLIENT_DIR%\copyfile.exe<qt/> <qt/>%LDMS_CLIENT_DIR%\ldvboot.img<qt/> <qt/>%LDMS_CLIENT_DIR%\startnet.ld<qt/> \startnet.bat
      REMEXEC17=<qt/>%LDMS_CLIENT_DIR%\lddefrag.exe<qt/> <qt/>%LDMS_CLIENT_DIR%\ldvboot.img<qt/>, STATUS
      REMEXEC18=<qt/>%LDMS_CLIENT_DIR%\bootfile.exe<qt/> %LDMS_CLIENT_DIR%\ldvboot.img /keep /bootunsafe, ASYNC
      BEGINDOS=TRUE
      REMPING19=DOS
      REMEXEC20=start \\twsouthamptonuk\SOTONP08
      REMEXEC21=start \\twsouthamptonuk\SOTONP09
      REMEXEC22=start \\twsouthamptonuk\SOTONP05
      REMEXEC23=reboot