I am on a Windows Server 2008 R2. Is it possible to limit the number of concurrent instances of a program/an executable file for a user?
An example: I would like to prevent the users from starting paint.exe if another paint.exe is still running.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityI'm pretty sure the program would need to have this sort of checking built inside itself for this to work. Or then you need to build a custom program launcher script or similar which checks the process list before starting the program.
AppLocker comes close, but even with AppLocker policies you can't do quite what you're after.
I ended up writing a windows service in C# that frequently checks for multiple opened instances and terminates the latter started.
No, it is not possible, and it rarely makes sense to start with. I have such a program here (Turbo Floorplan) and it sucks - like when I try to replicate a building plan. Can not open 2 documents at the same time.