You shouldn't need to do this as a script if it's just one Robocopy line. We use robocopy and just put the full command line in the 'Installation program'.
It's a good idea to put the .exe on the robocopy part, so try something like this in the 'Installation Program' box : Robocopy.exe "c:\program files (x86)\xxx" "c:\program files\xxx" /e /xo Also don't you need to specify the files to copy over with robocopy, ie : Robocopy.exe "c:\program files (x86)\xxx" "c:\program files\xxx" * /e /xo From: [email protected] [mailto:[email protected]] On Behalf Of Wilbers, Scott Sent: 24 November 2014 14:42 To: [email protected] Subject: [mssms] RE: Robocopy not work properly via sccm ? This is crazy Packages and Programs run as 32 bit processes on 64 bit OS, you might need to run cmd.exe from C:\WINDOWS\SysNative and call your bat file. From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Burke, John Sent: Friday, November 21, 2014 1:45 PM To: [email protected]<mailto:[email protected]> Subject: [mssms] Robocopy not work properly via sccm ? This is crazy I have a simple bat file that i have set to download to cache that calls robocopy "c:\program files (x86)\xxx" "c:\program files\xxx" /e /xo The program needs to run with admin rights. When it runs it just spams that command over and over again however I can browse to the cache directory and right click and run as admin and it works fine. I know i could use xcopy but it's driving me nuts that it's not working yet i can basically double click and it does work. Why isn't this working from run advertised programs ? ******************************************************************************************** Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. ******************************************************************************************** --------------------------------------------------------------------------------------- Information in this message is sent in confidence and is intended only for the use of the individual or entity to whom it is addressed. If you are not the intended recipient, any use, distribution or copying of the information is strictly forbidden. Please notify the sender immediately by return email or telephone 01823 721400. If you received this email in error please delete it and any copies of it from your system. Viridor Waste Management Limited Registered Office: Peninsula House, Rydon Lane, Exeter EX2 7HR Registered in England No. 575069 ---------------------------------------------------------------------------------------

