How to identify which user is currently using the VM. That is the VM might have common login like administrator, test1 etc., but I want know which user/machine has launched the VM using mstsc from their machine and using it.
I want to fetch these information using C# or powershell code.
All the machines and VM's are in same domain.
All your suggestions are welcome.