Depends on what the local admin allows on his network.
Maximilien wrote:I was looking for a confirmation if that was allowed on Windows or not.
You'll need a server (under your administration), it's that simple. Either one that's online, or on-site. Could be a cheap Raspberri Pi in a lockable box. Then you could have each client tell that server when it is online, and under which user. If a user is already online, simply tell the second instance (over TCP/IP e.g.) that it should shut down. Encrypt your connection and include a timestamp to prevent people from recording and playing back sessions.
Also be sure to implement a heart-beat to your server; that's the easiest way to detect when a connection is dropped, or a process died.
See, access to your application can be blocked; but blocking the machine would be considered a hostile act
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]