Using a script file to copy an exe file and execute
I am trying to copy an exe file to a remote computer and run it with a cmd script from SCCM. The log shows that the exe is copied and ran successfully but when I look at the machine, the file is neither copied or ran. I have tried several variations of my script so I am wondering if there is something about SCCM that just will not do it.
My script is as follows:
copy "%~dp0CM_Log.exe" "%temp%"
cd %temp%
CM_Log.exe /s /SMS
exit
Can anyone point me in the right direction? I honestly feel like I am overlooking something VERY simple... which I hate.
Any assistance is greatly appreciated.
My script is as follows:
copy "%~dp0CM_Log.exe" "%temp%"
cd %temp%
CM_Log.exe /s /SMS
exit
Can anyone point me in the right direction? I honestly feel like I am overlooking something VERY simple... which I hate.
Any assistance is greatly appreciated.
0 Comments
[ + ] Show comments
Answers (2)
Answer Summary:
Please log in to answer
Posted by:
andys0123
12 years ago
Posted by:
nkennelly
12 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.