Page 1 of 1

Run a windows batch file from Control-m

Posted: 20 Jun 2013 11:38
by Hajsha
I need to run a windows batch file from control-m. when the batch file is executed directly from the server it works fine. But when the batch file is called from control-m some proxy issue is occuring. Is there any script that can be called from control-m in-turn it will call the batch file?
or any ideas to over come this issue?

Posted: 26 Jun 2013 8:52
by jstarkw
Hi,

Are you running the batch file in control-m as the same user (owner) that runs successfully when done manually? If you do not select "Logon as: Local system account" in the agent service properties (Logon tab) it will always run as the entry in "Logon as: This account". It will not matter what you set the Owner to. It will always run as "This Account"

There are other settings that must be changed on the windows agent server and in control-m if you select "Logon as: Local system account".

Might be easier to grant permission to "This Account" id to run the batch file.

Posted: 08 Jul 2013 7:57
by Hajsha
Hi Jstarkw,
Thanks for your reply.
Our SysAdmin team also have suggested the same that to run the control-m agent service to be 'logon as' the account not as local system.So changed the account to some other account name and the job going successful.