Hi,
Based on my experience, you may put the batch script in a location that doesn't match in you command line. Put the batch script in the Scripts folder of your deployment share; the location will be %SCRIPTROOT% and you'll run something like cmd.exe /c %SCRIPTROOT%\install.bat. If you want to use a different folder in the deployment share, just remember the variable %DEPLOYROOT% points to the root of your share. You could run it from %DEPLOYROOT%\Custom\install.bat, for example, where Custom is a folder you've created in the deployment share.
MDT Batch Files
Note: The non-Microsoft link is just for your reference.
Thanks for your time.
Best regards,
Simon
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.