Quantcast
Channel: VMware Communities : All Content - VMware View
Viewing all articles
Browse latest Browse all 9103

Run script inside user VM when user connects or reconnects

$
0
0

Hello,

 

is it possible to detect inside user VM that user has connected or reconnected to his desktop and run some script ?

 

Also is it possible inside user VM to find out if user is connected and how long?

One way to do it is via following powershell command, but this works only if user is connected via PCoIP protocol.

 

Get-WmiObject -Class Win32_PerfRawData_TeradiciPerf_PCoIPSessionGeneralStatistics -Property SessionDurationSeconds

 

Best regards


Viewing all articles
Browse latest Browse all 9103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>