Does anyone have a script to restart task agent in Epicor 10?

Hello All,

Every time windows updates occur and our servers are restarted, Epicor stops processing print jobs. The servers restart at 3AM and we were wondering if anyone has a script we can run to restart the task agent automatically so we do not have to wake up to do it. Does anyone have a script to restart the task agent?

Thanks in advance for any help.

Respectfully,

Utah Taylor

I would set the task agent to a delayed start. That should allow it to restart by itself after a restart.

Depending on your version of Epicor

NET STOP EpicorICETaskAgent3.1.500.0
NET START EpicorICETaskAgent3.1.500.0

NET STOP EpicorICETaskAgent3.1.400.0
NET START EpicorICETaskAgent3.1.400.0

etc…

4 Likes

Task Agent is a windows server. You can create a windows task to run one of the following 2 commands in a .bat file maybe.

Option 1: service control command

USAGE:
sc servername [command] [service name] option1 option2…

EXAMPLE:
sc \servername start EpicorICETaskAgent3.1.500.0

Option 2. net command

USAGE:
NET START [service]

EXAMPLE:
NET START EpicorICETaskAgent3.1.500.0

Or set the service to Start Automatic, or Automatic Delayed Start, as mentioned by @jkane

Carlos
PSE

Thank you both, we will try these out!