How to force logoff from command line?

I'm using tasks for several reasons and also want to have any user logged off, not just locked after a few minutes of idle time.

The task works except that the build in logoff.exe of Windows 7 doesn't seem to support any force command, so I end up with a logoff in progress which can be canceled by anyone, if programs are still active.
The logoff screen has a force logoff button but that doesn't help, as I wont be physically infornt of the PC, so I need this old force command working.

Anyone any idea???

Thanks
Answer
Answer
Thanks, that's, what I was looking for.

shutdown /l = Log off and /f = force

146 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated October 2, 2020 Views 434,431 Applies to: