- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Look at
http://stephenjesse.com/2020/09/16/script-for-automating-desktop-logoffs-in-horizon/
its what I use. I email and send a local message and that seems to be working.. It looks similar I'd compare and also make sure your powercli version is updated.
$global:DefaultHVServers[0].ExtensionData.Session.Session_SendMessage($session.id,$emailSubject,$emailBody)