Launch Slave At Log Off

Hello,

I have had success setting this up with task scheduler. For this to work Deadline must be installed as a service.

Create 2 batch files, startDeadlineService.bat and stopDeadlineService.bat.

edit stopDeadlineService.bat and add the following line…

net stop “Deadline 8 Launcher Service”

Put the file in C:\Windows\System32\GroupPolicy\User\Scripts\Logon

edit startDeadlineService.bat and add the following line…

net start “Deadline 8 Launcher Service”

Put the file in C:\Windows\System32\GroupPolicy\User\Scripts\Logoff

Now open up task scheduler and create the first task…

General Tab…
Name: Stop Deadline Launcher Service
Run task as admin
Run whether user is logged on or not

Trigger Tab…
New…
Begin the Task: At log on
Any User

Action Tab…
Start a program
Select stopDeadlineService.bat

Create a second task…

General Tab…
Name: Start Deadline Launcher Service
Run task as admin
Run whether user is logged on or not

Trigger Tab…
New…
Begin the Task: On an event
Basic…
Log:System
Source:Winlogon
EventID:7002

Action…
Start a Program
Select startDeadlineService.bat

If you are in an AD environment you can setup a GPO for running scripts on Logon or Logout.

Regards,

Charles

1 Like