I need to be able to logoff any user from his windows session from a program.
I know I could log in as an admin and force a remote logoff. Is there any other way to force a logoff without logging in?
The tool will run as admin so that's not a problem, being able to remote logoff without logging in is.
Tool is in .NET, but any other way is welcome (JScript, command line tool to run from PInvoke, etc.)
Perhaps with Sysinternals' PsTools, particularly PsShutdown?