Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Powershell script that detects Connection Status of Virtual Desktop and Restart VM when Disconnected by Users

$
0
0

Hi,

 I have a pool of non-persistent VMs and users do not click on Start, Log off but instead they click on the X at the top right corner to close the VM. This action does not restart the VM. Only Start, Log Off will restart the VM.

 Is there a script that detects the Connection Status as Disconnected and restart the Vm?

Please see picture for details.

Thank you!!


Viewing all articles
Browse latest Browse all 6937

Trending Articles