• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Podcast
  • Meetups
  • Archives
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp for Desktops
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp for VDI
  • Topics
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

ControlUp Script that sends a message box to a user in a Citrix session with a text plus clickable link or URL

Posted on June 20, 2023

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
Topics: Citrix, Microsoft Windows, Scripts

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn
Did you Know - with Sivan Kroitoru
Practical Perspectives Technical Use Case Training

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp solutions.

Browse here >

Download ControlUp RealTime DX

Start with ControlUp for real-time end-user environment insights, swift troubleshooting, and unprecedented performance optimization. Download now.

Download here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2025 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..