troubleshooting Question

Log users off of server, if Access application stops running

Avatar of Andy Brown
Andy BrownFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft AccessC#Windows Server 2012
10 Comments1 Solution119 ViewsLast Modified:
I have an MS Access application, running on a very locked down 2012 R2, RDP server.  If an issue occurs that can't be handled by the Access application a user message pops us with one of the options being to log-off.  However, I had an issue yesterday, where something happened and Access just exited, but it left the user with a black screen requiring another user with Admin rights to log them off through the Task Manager.  I need this to be handled without Admin involvement.

I was thinking of writing a small c# app that is loaded by the Access application on startup.  My idea was to pass it the ProcessID through a command line switch, and then have the app monitor the PID every 30 seconds or so.  If the PID disappears (ie, Access has crashed out), it simply logs the user off.  However, resources on the server are tight, so I'm trying to find the best method.

Is this a good idea, or is there a better way?  Also, if anyone has any code suggestions, that would make my life easier.

Thank you.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros