3 Replies Latest reply on Jun 20, 2014 8:44 AM by Yanick Girouard

    Launch vbs on a target server


      Hi,

       

      I hava an nsh script that must launch a .vbs on a targer server. The vbs take 3 parameter.

       

      I would like to know how I can launch the vbs with the parameter.

       

      Here's the nsh script.

       

       

      blcli_connect

       

      username=test

      password=pass

       

      SERVER_LIST=${@}

           for serverName in $SERVER_LIST

           do

           nexec serveur.int.domain.com cmd /c "echo cscript D:\Scripts\maint\CreateAOT.vbs

      $serverName $username $password"

       

          done

       

       

      Someone have an idea??