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?
Run a windows batch file from Control-m
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.
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.