I need to copy a file from the MDT server to the computer running the task sequence. Here is what I'm trying to use, but it never copies the file:
xcopy "%deployroot%\OfflineJoinDomain\%OSDComputerName%.txt" "C:\Users\Administrator\Desktop\"
Here is what works:
xcopy "Test-JoinDomain.txt" "C:\Users\Administrator\Desktop"
I've created a text file with the name of the new computer. How can I use the variable name of the computer to copy the text file?