Impact of Session 0 Isolation in Windows
Hello Everyone, since Windows Vista, Microsoft has been changing the policy of sessions manage. In brief, now (with Windows Server 2008 R2) a scheduled task will be correctly execute only if it was created as a "Service" and NOT as a "Application". I have some executable program that is execute at night as "Application"; its contains forms and now on Windows Server 2008 and 2008 R2 it doesn't works if no user logon. I know that MS has cange the isolation of session 0 for security reason: http://msdn.microsoft.com/en-us/windows/hardware/gg463353.aspx ...but I would find a solution for current our software version, waiting to adjust them. Are there a workarounds ? Thanks! Sergio Govoni SQL Server MVP MVP Profile: https://mvp.support.microsoft.com/profile/Sergio.Govoni Blog: http://community.ugiss.org/blogs/sgovoni
October 3rd, 2011 3:21am

Hi, Thank you for your question. I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support. Regards,Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
October 4th, 2011 5:23am

Hi Arthur, I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support. No problem for delay :) right now I'm saying to our customers to schedule the task on Windows 2003 Server (if it's possibile and if there is). Let me know when you have an update. Thank you! Sergio Govoni SQL Server MVP MVP Profile: https://mvp.support.microsoft.com/profile/Sergio.Govoni Blog: http://community.ugiss.org/blogs/sgovoni
October 4th, 2011 11:33am

The running of scheduled task is not not impacted by service isolation. I think maybe you are confusing the idea of services and applications "interacting with desktop". Is this what you are talking about? When creating a task on the general tab you will have the options of "Run only when user is logged on" or "Run whether user is logged on or not". This selection either defines the application as "interactive" meaning it interacts with the desktop and displays something on the screen or "non-interactive" meaning it doesn't interact with the desktop. This doesn't mean it is a service if it runs in "non-interactive" mode. Applications that are designed to display information and interact with the desktop generally can't run in "non-interactive" mode. If you check the logs you can see whether the task is being triggered or not. I suspect it is but the application is failing to launch. Log is Event View\Windows Logs\Microsoft\Windows\TaskScheduler FYI you can make a service "Interactive" by checking the box "Allow service to interact with desktop". It is still a service and not an application.Ketan Thakkar | Microsoft Online Community Support
Free Windows Admin Tool Kit Click here and download it now
October 6th, 2011 5:41am

Hi Ketan, thanks for your answer, right now my application contains forms that are displayed on desktop in user-interactive mode when user is logon. One features of this application is the rebuilding of the real-cost of the production order (for example) wich where processed in the past 24 hours. When I execute the rebuild, of the real-cost of the production order (for example), on server when user (administrator or other) is logon all works fine and when I schedule the execution (of my application) at night and user is logged on (session may be bloccked but the user is logged in) it works fine too. One time at a mounth (about) the server is shoutting down ... and restart ... and no user logged on and my application doesn't works I suppose because no GDI are inizialized. Thanks! Sergio Govoni SQL Server MVP MVP Profile: https://mvp.support.microsoft.com/profile/Sergio.Govoni Blog: http://community.ugiss.org/blogs/sgovoni
October 6th, 2011 12:17pm

Correct. With no user logged it there is no interactive session for the program to write to.Ketan Thakkar | Microsoft Online Community Support
Free Windows Admin Tool Kit Click here and download it now
October 10th, 2011 8:59am

And no workarounds are available for this, I suppose. Correct? Sergio Govoni SQL Server MVP MVP Profile: https://mvp.support.microsoft.com/profile/Sergio.Govoni Blog: http://community.ugiss.org/blogs/sgovoni
October 10th, 2011 10:09am

No there is no workaround. Application would have to be written to run without interactive session.Ketan Thakkar | Microsoft Online Community Support
Free Windows Admin Tool Kit Click here and download it now
October 12th, 2011 2:50am

No there is no workaround. Application would have to be written to run without interactive session.Ketan Thakkar | Microsoft Online Community Support
October 12th, 2011 9:48am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics