SCCM2012 - Copying files Task Sequence

Hi all,

I have been assigned the task of copying a *.dll and *.ini, then registering the *.dll file to %WINDIR%\Downloaded Program Files on the local machine for a department.

I have tried using a task sequence to copy both files and register the *.dll but the task sequence errors 000004, "unable to locate files". I assume the task sequence is using a system account therefore cannot locate the files on the network file share.

Does anyone know if this can be achieved using a Task Sequence or advise on how to write a package?

Thanks

July 24th, 2013 9:17am

Why do you want to copy the files from a share? Why are not using a distribution point?
Using a task sequence can be done, but why not using a package/program that just executes a script?
Free Windows Admin Tool Kit Click here and download it now
July 24th, 2013 10:20am

Thanks Torsten - yes I tried to package a program which executed a .cmd file.  Would I need a vbscript, can this be executed as system or would i need to elevate as an admin (specified on the package or in script)

The source content is hosted on a file share, when a package/application is deployed it is then copied to the DP's.


July 24th, 2013 10:28am

ConfigMgr can run it with admin rights, which equals system context. No need to elevate things manually.
Clients won't have to access the package source; they will be downloading it from the DP.
Free Windows Admin Tool Kit Click here and download it now
July 24th, 2013 11:10am

have a look at the following, I wrote it for CM07 but the logic should be the same for CM12

How can I copy files from a package using a task sequence
Not as straightforward as you think

July 24th, 2013 11:45am

Why not just use a simple batch file and add it to your task sequence?  We have on like that here for our OSD and it works great.

ECHO.
ECHO     Copying Files
ECHO     =============
MKDIR "C:\path"
copy "%~dp0filename.ext" "C:\path\" /y
regsvr32 /s "C:\path\filename.ext"

Or am I missing something you need in here?
Free Windows Admin Tool Kit Click here and download it now
July 24th, 2013 11:58am

Can you explain on how I would create a program/package for this? As I mentioned, I did try this but with no luck?

Thanks

July 30th, 2013 12:21pm

Thanks - I don't need to make a dir, as already exists. Basically copying files hosted on a share (then content distributed to DP) to %WINDIR%\Downloaded program files.

Then registering a .dll, using regsvr32 /s in the same folder.

This needs to be run as system or an administrator account. I know I can specify this in the TS.

Thanks

Free Windows Admin Tool Kit Click here and download it now
July 30th, 2013 12:24pm

It is awful that SCCM does not have predefined action (being it in task sequence or application/package temple) to do the very thing: copy some files/folders to client machine.

One of the crucial actions for client management/software installation, yet so easy to make a simple typoIf there was something predefined it would be that much easier

July 29th, 2015 10:06am

Feel free to add feedback on https://configurationmanager.uservoice.com
Free Windows Admin Tool Kit Click here and download it now
July 29th, 2015 10:32am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics