I am using SCCM 2012 to deploy some applications. I am having issues with one of them not deploying. I keep getting "installation failed" " Incorrect Function". Its a simple batch file that creates a folder in C:\program Files(x86) and copies files to it . Thats it. I have tried doing a straight up file copy, I have tried using psexec to run it with elevated credentials etc.. but nothing is working. Please look below and let me know what I am doing wrong? Makes no sense:
I have tried so far:
CD /d %~dp0
%~dp0psexec.exe -u **\ -p *** -h -i cmd /c mkdir "%ProgramFiles(x86)%\UMAX\"
COPY /Y %~dp0Files\*.* "%ProgramFiles(x86)%\UMAX"