I would like a script that sends a message box to a user in a Citrix session with a text plus clickable link or URL. Is that possible? I have tried to edit the "Show Message Dialogue" script but with no luck
I’m currently working on something similar, unless someone else has something already I will post it here when it’s ready
Sounds great! please keep me posted 🙂
You could use a toast popup
How can I configure a toast popup with a clickable link/URL?
@member are your Citrix sessions dedicated Win10 Machines or Shared Session Hosts?
In this case it is Windows 10 multi-session. But it would be nice to have single-session option as well.
Can you try the following which is specific to Win10. It’s not perfect but should get you going:
“`Function ToastMessage {
[cmdletbinding()]
Param (
[Parameter(Mandatory=$true,HelpMessage=’Message Title’)] $MessageTitle,
[Parameter(Mandatory=$true,HelpMessage=’Message for user’)] $MessageText,
[Parameter(Mandatory=$true,HelpMessage=’URL to open when clicked’)] $URL
)
$toastXml = @"
<binding template="ToastGeneric">
<text>$MessageText</text>
</binding>
"@
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] > $null
[Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime]
[Windows.UI.Notifications.ToastNotification, Windows.UI.Notifications, ContentType = WindowsRuntime]
$xml = New-Object Windows.Data.Xml.Dom.XmlDocument
$xml.LoadXml(([xml]$toastXml).OuterXml)
$toast = [Windows.UI.Notifications.ToastNotification]::new($xml)
$toast.Tag = $MessageTitle
$toast.Group = $MessageTitle
$toast.ExpirationTime = [DateTimeOffset]::Now.AddMinutes(5)
$notifier = [Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($MessageTitle)
$notifier.Show($toast);
}
ToastMessage -MessageTitle "Hello" -MessageText "Here is text" -URL "http://controlup.com"“`
Wow that was awsome! :star-struck: Exactrly what I was looking for!
Is it possible to make it stay visable and not go away until you click on it?
Edit: Nevermind, found it in Windows settings
tbh I’m not sure if we can override the windows setting via the script. Have a play around and if you find out how to do it let me know! 👍
Continue reading and comment on the thread ‘ControlUp Script that sends a message box to a user in a Citrix session with a text plus clickable link or URL’. Not a member? Join Here!
Categories: All Archives, ControlUp Scripts & Triggers