SCCM 2012 R2 Task Sequnce install .pkg then run a cmd
So I am able to install a package Finale https://www.finalemusic.com/ wrapped in a Task Sequence, tested works.
Second line of this TS is to run the following cmd syntax as follows, cmd.exe /c \\sccmserver\software\finale.txt "c:\Program Files\Finale" the file is a simple .txt file that the program uses for the in house License Manager server location
Having an issue that the cmd never runs or fails and does not copy the file to the local client in Program Files\Finale folder?
Any suggestions?
Running the cmd at an elevated cmd prompt fails as an unknown cmd.
Running the cmd at an elevated cmd prompt fails as an unknown cmd.
I am able to run the cmd successfully with robocopy at an elevated cmd prompt but not within the TS.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
nagendrasingh
6 years ago
Put the finale.txt in a package and copy from there.
The way you are doing is failing because SCCM uses local machine account to copy the file from a remote host where it does not have the permission. Of course you can run the copy command as a different user or use something like this
Map \\server\share as T:
copy from T:\files\file.ext to c:\programfiles\folder