Re: EA ap Background Service keeps running while EA app is stopped
Hey, I think it's the same "problem" for everyone, because sadly I believe it is intentional behaviour.
But one can work around it:
The easy way
One can start notepad.exe, insert the following:
net stop EABackgroundService
and save the file as e.g. "StopEA.bat" (the .bat file type ending is important!) on the Desktop. Now, when doubleclicking the file, the EABackgroundService gets terminated.
The more complex but automated way
By setting a scheduled task that is monitoring the closing of programs (in this case, the EA Desktop App), one can trigger a command to stop the EABackgroundService.
These steps should do it:
Enable 'application start' logging
- Start and enter secpol.msc into the Run box
- Navigate to Local Policies/Audit Policy
- Double Click Audit process tracking and enable "Success"
Create scheduled task based on trigger
- Open Task Scheduler and create a new task
- On the General Tab, give the task a name
- On the Triggers tab, create a new trigger, and choose On an event as the trigger
- Choose Custom, and click Edit Event Filter
- Change the Filter settings as follows:
Now Switch to the XML tab, and enable edit query manually
One might see something like this:
<QueryList> <Query Id="0" Path="Security"> <Select Path="Security">*[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and Task = 13313 and (band(Keywords,#somenumber#)) and (EventID=4689)]]</Select> </Query> </QueryList>
After "(EventID=4689)]]" one has to insert the following:
and *[EventData[(Data='C:\Program Files\Electronic Arts\EA Desktop\EA Desktop\EADesktop.exe')]]
It should look like this (one might have to edit the program path to the EADesktop.exe and maybe the number after Keywords is different, I don't know what this number does, so best keep your number unchanged):
<QueryList> <Query Id="0" Path="Security"> <Select Path="Security">*[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and Task = 13313 and (band(Keywords,9007199254740992)) and (EventID=4689)]] and *[EventData[(Data='C:\Program Files\Electronic Arts\EA Desktop\EA Desktop\EADesktop.exe')]]</Select> </Query> </QueryList>
Click Ok for this, then Ok to close the trigger dialog box.
Now choose the Action tab, and create a new action, that is "Start a Program":
- At "Program/script:" fill in: NET
- At "Add Arguments (optional)" fill in: STOP "EABackgroundService"
Click Ok
In the Settings tab, I unchecked "stop the task if it runs longer than", don't know if this is necessary.
Start the task
In the task scheduler window click on "Task Scheduler Library", look for your created task, rightclick on it and say "run" (if it's not already running).
From now on, everytime the EA Desktop App get's closed, the EABackgroundService should get terminated.
Sources:
https://superuser.com/questions/745318/how-to-start-a-program-when-another-one-is-started