5 Replies Latest reply: Apr 5, 2012 2:28 PM by EMiranda RSS

    Trouble distributing a reg change in a batch file

    Rookie

      I'm not sure why I'm having so much trouble here.  The short of it is I have a registry change that is called up by a simple batch file.  I've verified it works when manually merged but as a scheduled package it is not executing the bat.  I've tried t0 push and multicast it, both result in errors.  Here is the result from an attempted multicast (sdclient log):

       

      Thu, 05 Apr 2012 14:15:15 Failed to get the response for the request from NLWS0098 (3)
      Thu, 05 Apr 2012 14:15:15 Web request to core server failed, result 1803, http status 0
      Thu, 05 Apr 2012 14:15:16 Cannot get preferred server list from core
      Thu, 05 Apr 2012 14:15:16 File (http://nlws0098/ldpackages/NSElite/NSTransferUpload/NSTransferUploadNO_test.bat) is cached locally
      Thu, 05 Apr 2012 14:15:16 processing of package is complete, result -2147467259 (0x80004005 - code 16389)

       

      The files are being created under C:\Program Files\LANDesk\LDClient\sdmcache\ldpackages\, so it makes it to the client but the batch will not run.  What am I doing wrong here?

       

      Contents of batch:

      @ECHO OFF
      regedit /s "%Programfiles%\Landesk\ldclient\sdmcache\ldpackages\NSElite\NSTransferUpload\NSTransferUploadNO.reg"
      exit /b 0

       

      Thanks.

       

      -=john