VMware Horizon Community
MindTheGreg
Enthusiast
Enthusiast

Get-RemoteSession and reboot the problem VM

Hello,

Using View 4.5 with Windows XP and sometimes I have a VM that gets stuck. I can find the misbehaving session with:

Get-RemoteSession -username "domain\aperson"

Then I try to boot them off with:

Get-RemoteSession -username "domain\aperson" | Send-SessionLogoff

Doesnt' work. I think the View Agent stops responding because I have to hop into vSphere and send a reboot command when the problem occurs.

Any ideas on how to script a fix to this?

Set-Annotation -CustomAttribute "The Impossible" -Value "Done and that makes us mighty"
Tags (3)
0 Kudos
0 Replies