To find a solution for this I started searching the internet (just following my motto not to create anything I someone else has already shared this.
This search brought me to the site of Project84 mirror where they placed a script which did exactly what I wanted. The script simply copies the files which are placed in the MDT Settings Package $OEM$ folder (you have to create this folder)
This are the steps to perform to get this working (taken from the Project84 mirror website)
- Added my $OEM$ Files to my MDT Settings Package. (The one with unattend.txt, sysprep.inf and customsettings.ini)
- Add Z-CONFIG-CopyOEM.wsf to your MDT Source Files package. I've provided it below. (Remember to update DP)
- In your Task Sequence right before "Setup Windows and ConfigMgr" add a new "Run Command Line" task.
- Set the Name to "Copy OEM Files".
- Set the Command Line to "cscript.exe "%deployroot%\scripts\Z-CONFIG-CopyOEM.wsf".
- Click the "Package" checkbox and select your MDT Settings Package.
- All Done!
Hi
ReplyDeletePlease Please send me the script you found in Project84. That link is no longer accessible.
MY email is varma2004@gmail.com
BTW... Good Luck at the FIFA WorldCUP Finals :)
Hello VG,
ReplyDeleteAdded a mirror link with the script.
Regards,
Bas Steelooper
PS. Thanks.. I am not in to soccer, but the rest of the country is..
Thank You. Got your email with the SCript.
ReplyDeleteJust wanted to confirm what is the syntax command line for script.
"cscript.exe "%deployroot%\scripts\Z-CONFIG-CopyOEM.wsf"
I believe there is either an extra " or missing "
I am very sorry for too many posts but I am finding this one after another.
ReplyDeleteIn the above post you mentioned..
2.Add Z-CONFIG-CopyOEM.wsf to your MDT Source Files package.
but
Step 6 says
6.Click the "Package" checkbox and select your MDT Settings Package
Would like select MDT source files package or MDT settigns package.
Dear VG,
ReplyDeleteNo problem about the many posts...
The command must be: cscript.exe "%deployroot%\scripts\Z-CONFIG-CopyOEM.wsf"
Without the first quote.
Step 1 is to add the files to the MDT Settings package.
Since the script is started from the deployroot this will work since the script sources are cached at deploytime but the Use MDT Toolkit package step.
Hope this explains some.
Regards,
Bas Steelooper