6 Replies Latest reply on Jan 6, 2015 1:19 AM by Krishna Vaddadi

    BSA 8.6 BL Package script issues in Windows

    Krishna Vaddadi

      Experts what is the issue in below script:

      I am simply reading the value of "Domain:..." from systeminfo command in windows BL Package (external command). This is perfectly working fine when executed from command prompt, however BL is complaining about:

      [stderr: 1]  "Domain:" was unexpected at this time. (Time in agent's deploy log:: 01/06/2015 04:51:25)

      Attached the bldeploy-xxxxxx.log file for understanding of this code snippet, also wierd the error in log is shown somewhere else...

      Please suggest if there is some issue in BSA 8.6 or this script needs a change in syntax...



      cd C:\Temp

      for /f "tokens=2 delims=: " %i in ('systeminfo ^| findstr /B /C:"Domain:" ^| findstr [a-z][a-z][a-z][a-z][0-9].[a-z][a-z][a-z][a-z][a-z][a-z][0-9].[a-z][a-z][a-z]')

      do echo %i>DM.txt

      set /p MachineDomain=<DM.txt

      Echo Referencing Directory - SetPs for %MachineDomain%