Bataction- Bat file can´t run

Hi team,

i have the following problem.

I have created a rule to execute Bat files as action, but when I generate the event everything seems fine but the file is not executed.

When I run the files manually they open, but not from Milestone.

BatAction.dll and Plugin.def files are unlocked.

im running Milestone Corporate 2022 R2 - Windows 10 Enterprise

We think that there could be a permission issue. Please see this link How to execute a batch job on a rule (XProtect Corporate/Expert) (milestonesys.com)

There is an explanation how to use bataction, also there are related to questions. One of them said:

pls keep in mind that running a batch file from a command prompt is not the same as having it started by another program.

If you run it from a command prompt, the batch file is running in someone’s user context (most likely your own), and you have an environment where you have a bunch of environment variables set for you by Windows.

If you run it from another program, there is no user context, and that might make your batch file fail.

SO here comes a second link, please see this article, might be helpful -

MIP actions: extra setup is required when the Event Server is not on the same server as the Management Server (milestonesys.com)