windows 8 autologoff after timeperiod when used userchange

Hey, is there any possibility to auto log off users that are still logged in the background when another user is logged in by using the windows user change feature.?

Means: User A logs in, leaves the pc but does no logout, just lock. Now user B logs in with user change feature, A is still logged in the background. Now user A should be logged out after a time period of inactivity...

Thanks in advance,
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
That is not supposed to happen. User A may have an application open and logging off will lose data.

If you are going to tell users to close applications and save data, ask them to log off when complete.

Largely however, if people are back and forth on the computer, just leave it as it is.
Not for normal users. Admins may log off others using task manager and the user tab.
JohnBusiness Consultant (Owner)Commented:
And if admins log off others, they can wreck documents not saved. The whole idea of controlling user activity by automation goes against the grain of productive computing.
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Sure, but he should know what he's doing.
So sure, there is a way, although it's complicated. We could setup a scheduled task that gets triggered at logon. That task would determine who logged in earlier and end that session. Don't ask me about details, I am on vacation, just here and there active on exp.ex.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
itechpartnerCTOAuthor Commented:
John, McKnife, thanks for your reply.
As McKnife has written, hopefully know what i am doing ;-)

i cant leave it as it is, due to the fact, that these users use a software, which has concurrent software licensing model. If they dont log off, dureing the day, new people cant log in, because there are not enough licenses....

Thats why i want to log the off automatically. Be kind to the people and ask them to log out when finished does not work.....

McKnife: I will check how the script could look like, sounds good ;-)
Let me know if you need help, I'm back from vacation.
JohnBusiness Consultant (Owner)Commented:
McKniffe said "We could setup a scheduled task that gets triggered at logon. That task would determine who logged in earlier and end that session"

That can probably be done,  but in terms of automation, the task like cannot know what is open, so logging off forcefully can wreck documents.

I have lots of clients who use joint machines, and for the most part (90% of the time), people know to log off and do. If I am forced to log off a client and they lose work, they learn very quickly.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 8

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.