I need to logoff remote users that are on the same domain and I am and admin from a C# .net 4.5 project I am working on. I can successfully do it from the command line (or by opening a subprocess) using:
logoff.exe sessionId /Server:servername
Is there any C# .net (or win32) API to achieve the same result and not need to open subprocesses?