vmrun can be used to list running instances of e.g. an Ubuntu image in Windows 10, i.e.:
C:\Program Files (x86)\VMware\VMware VIX>vmrun list
Total running VMs: 1
For a remote PC, Windows Remote Desktop Connection is used to connect and the intention is that several users should use RDP to access this PC. The issue is that if someone that was connected the the remote PC forgets to suspend the ubuntu-image or didn't have the change to suspend it due to being kicked out, running the "vmrun list" command as an another connected user does not list the VM as running, and thus it is not possible to suspend it. Neither is it possible for the newly connected user to launch the same image since it is locked by the former connected user.
Is there a way to forcefully suspend an image of another Windows user accessing the same PC?
For anyone else that might encounter the same issue...
It was rounded by adding to the Windows Task Scheduler to run a *.bat file which simply suspends the VM using vmrun and triggers for "on remote disconnect from any user session".