Batch file not working

Hi, I created a batch file which seemed to worked fine yesterday, but today it isn´t. This is the script msiexec.exe /i "\\server\TeamViewer_Host.msi" /qn CUSTOMCONFIGID=XXXXXXX APITOKEN=XXXXXXX DESKTOPSHORTCUTS=0 IMPORTREGFILE=1 Thanks

Best Answer

Answers

  • W_deFazio
    W_deFazio Posts: 22 Staff member 🤠

    Hello LincolnAEL,

    Please try the example below for your batch script:

    REM			INSTALLMSI
    start /wait msiexec.exe /i \\XXXXX\XXXXX\XXXXX\TeamViewer_Host.msi /qn customconfigid=xxxxxx apitoken=xxxxxx importregfile=1 desktopshortcuts=0 assignmentoptions="--alias %computername%"

     

    Let me know if this works for you or if you have any questions! 

  • Thank you very much W_deFazio. Just one question. Do I have to add --alias %computername%"? In that case, shall I select the computer name? as I don´t want to set names, just use each computer name.