Jump to content

Recommended Posts

Posted

CopyProgramsMDT.jpg

 

To Anyone who is an MDT expert

I am trying to use a task seqence for robocopy to copy programs into a path director such as C:Program Files (x86).

It does work with the task seqence cmd.exe /c %scriptroot%CopyPrograms.bat but i get errors with the following in the attached file.

I have googled error codes an it does mentioned about network discovery needs to be turned on.

It works fine when you manually run the batch file on the device itself.

If anyone can help i would really appriciate it.

Thanks

Posted

To copy files in MDT, I use xcopy.

 

I create an application and use xcopy "example.exe" "C:\path" /Y /F

 

I then install that application as part of the MDT task sequence

Posted

What would be you command line for running the batch file with the xcopy command inside ?

 

- - - Updated - - -

 

To copy files in MDT, I use xcopy.

 

I create an application and use xcopy "example.exe" "C:\path" /Y /F

 

I then install that application as part of the MDT task sequence

 

 

What would be you command line for running the batch file with the xcopy command inside ?

Posted

Do you have a example task seqence command line for your batch file?

 

 

 

To copy files in MDT, I use xcopy.

 

I create an application and use xcopy "example.exe" "C:\path" /Y /F

 

I then install that application as part of the MDT task sequence

  • 6 months later...
Posted

Sorry to revive a dead thread.

However if the script works fine and has all the correct permissions, it could be that robocopy doesn't return the correct error code to tell MDT it's ran successfully. I do this on my scripts that have this issue:

 

@echo off 

REM some script stuff ...

exit /b 0

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...