Using SCCM how do you package and deploy a batch file?
Currently I'm trying to deploy a .xml file from a server to a folder on the C drive on users pc. I was using a match file to call the .xml and copy/paste it to the c drive. I'm able to manually run the batch file and it copies and paste to the location on the C drive but using sccm it is stuck in progress. Message ID is 10072 and description is 4.
1 Comment
[ + ] Show comment
Answers (3)
Please log in to answer
Posted by:
dunnpy
6 years ago
The message is a retrying message, likely due to the failure to run the batch file.
I suspect that as you're running this from a server that isn't an SCCM DP share that it's falling foul of access permissions - unless you're copying from a null session share.
Add the file and script into a package so that it's available on the DP and it should run correctly. The alternative is to provide the SCCM service account access to the share that the file is being copied from and it should work.
Hope that helps,
Dunnpy
I suspect that as you're running this from a server that isn't an SCCM DP share that it's falling foul of access permissions - unless you're copying from a null session share.
Add the file and script into a package so that it's available on the DP and it should run correctly. The alternative is to provide the SCCM service account access to the share that the file is being copied from and it should work.
Hope that helps,
Dunnpy
Posted by:
nagendrasingh
6 years ago
I would create a package with .bat and .xml and use xcopy etc to put it in the right folders.
Using a share would need to change permissions on share. Keeping xml in package is simpler.
This is from one of my packages.
=================
md "c:\program files\sigma6"
copy sigma6.exe "c:\program files\sigma6"
copy sigma6.lnk C:\Users\Public\Desktop
Using a share would need to change permissions on share. Keeping xml in package is simpler.
This is from one of my packages.
=================
md "c:\program files\sigma6"
copy sigma6.exe "c:\program files\sigma6"
copy sigma6.lnk C:\Users\Public\Desktop
Posted by:
anonymous_9363
6 years ago
So should i always run the package from the DP and not download and run locally? - kyleasimpson 6 years ago