see this https://blogs.msdn.microsoft.com/agileer/2010/08/31/task-scheduler-a-specified-logon-session-does-not-exist/