Forum Discussion

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

  1. Start and enter secpol.msc into the Run box
  2. Navigate to Local Policies/Audit Policy
  3. Double Click Audit process tracking and enable "Success"

Create scheduled task based on trigger

  1. Open Task Scheduler and create a new task
  2. On the General Tab, give the task a name
  3. On the Triggers tab, create a new trigger, and choose On an event as the trigger
  4. Choose Custom, and click Edit Event Filter
  5. 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":

  1. At "Program/script:" fill in: NET 
  2. 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://www.tenforums.com/general-support/193951-task-scheduler-how-end-program-when-another-one-ends.html

https://superuser.com/questions/745318/how-to-start-a-program-when-another-one-is-started

https://helpcenter.gsx.com/hc/en-us/articles/360001491087-How-To-Restart-Windows-Services-Using-Task-Scheduler

3 Replies

  • @pospad Thanks for doing what EA won't, chief. Especially now that they outright killed Origin. Not only does the new launcher keep processes running in the background for no good reason, it also has less features/customization options than Origin did. The ability to hide games I'm no longer interested in, cluttering my library? Gone. The option to make the games library the default tab on opening the launcher? Gone as well. It's trash.
  • @pospad Thank you SO much for the .bat file idea, it works like a charm. I hadn't played the game in several months and was horrified to find this 'update' that leaves a background service running after quitting. I was having to go into Task Manager and End Task, and the batch file is so much quicker and painless.
  • Misbehaving services is likely why I've been having an issue with EA App that prevents closing it at all. I log out, and am stuck at the login screen. Quitting/exit doesn't work. Right click in the taskbar and closing...doesn't work. 

    I have to pull up task manager, locate the right executable and stop the process. It's kind of evil that you have to do that every time.

About EA app Technical Issues & Bugs

Having issues with the EA app? Join us to report bugs, and find help with downloads, DLCs, purchases, and login errors.7,611 PostsLatest Activity: 60 minutes ago