ITJS2015 Posted July 1, 2022 Posted July 1, 2022 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
stevenlong1985 Posted July 1, 2022 Posted July 1, 2022 I never got this to work either, I did a workaround, have a logon script run on an admin account to pull the files after
ITGuyNW Posted July 1, 2022 Posted July 1, 2022 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
ITJS2015 Posted July 1, 2022 Author Posted July 1, 2022 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 ?
ITJS2015 Posted July 4, 2022 Author Posted July 4, 2022 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
strawberry Posted July 5, 2022 Posted July 5, 2022 https://www.catapultsystems.com/blogs/copy-content-to-target-computers-using-oem-folders/ oem folders might do the trick.
qwertyuiop1 Posted January 23, 2023 Posted January 23, 2023 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now