• 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

How Can I Create an Alert in Solve ControlUp for Users When OneDrive.exe Isn’t Running?

Posted on April 17, 2023

The user is seeking guidance on creating an alert for their users regarding the status of OneDrive. They reach out to the Solve ControlUp website for assistance. Matt from Solve ControlUp suggests using version 8.8, currently in beta, to monitor OneDrive services. Another community member mentions that version 8.8 is required for monitoring the sync and update service. They also share a sample script for creating a Toast Notification. The user expresses gratitude and plans to explore version 8.8 and the provided script.


Read the entire ‘Does Solve On-Premises Have Historical Data?’ thread below:

I am using Solve ControlUp website and wanted to reach out too see if you guys could guide me in the right direction on creating an Alert for my users.

We have group policy that supposed to force OneDrive to load at startup, what we would want is an Alert to tell us if onedrive.exe "isn’t" running.

New to the Community, so it would be greatly appreciated if you guys has any insight on this or have something like this set up in your environments. Thx


Hello Matt! We have version 8.8 that’s in a beta phase that can def monitor services such as this. I recommend you deploy beta 8.8 to take care of this type of problem you have. 😉


Thx for the info, I will take a look at that!!


you can always do an alert for if the OneDrive.exe is not running in the user’s session you don’t need 8.8 for that


you would need 8.8 to tell u if the sync and update service is running


https://support.controlup.com/docs/setting-up-triggers


Thx for the info Luke, appreciate it!!!


@member here is a sample script of a Toast Notification which you can configure to actually show a message in the user session. You can customize it with your logo and also allows for example to supply an action upon clicking a button to raise a servicedesk request for example.

“if( ! [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime]

-or ! [Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] )

{

Throw "Failed to load required .NET class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MB8Cfv/wsDcGpzf1JilzPLspxxBcbVsvdzBlQKgmVbX41UYw6zaAG1GSEEISRaAaKVRp/qzUxzzguokE0pjURwRpb5eE/D3bhIqZM85zAHE7eot6QScAaJxLX1vcHUWAL0AOZDLannV0FEhCcYUDWoFYvUrYMHnCcwVkUaR98bgL//np157M/HLBXwtpxdEEAkwFrnGJNODV6tovqA88RfLBARIOoA4ZIBeG80K+fHEGRehQIAHQJnflUAAFB84mr187VqySqlqwrHKhe4Ali0VSSoHoAge/zD7Ryg0dziHFqETwBBpw6hRrc1F/rNyeBf/5Kscg+Xe/rS01X1j688aB5B6Nv6dQ7QA/ABxAvhBeJDwK+I+FUJfrUcuBdJPv83vzBjcB46p0kABK25XETBKu4zA7+sPNi9RU/acq5MA2BCWCiwTqv1foVZ5qtDblx+RByXg8ZF+X3PYbcB8FMc9ozDNWfGqQAAAABJRU5ErkJggg==’

[string]$scriptSupportFolder = [System.IO.Path]::Combine( [Environment]::GetFolderPath( [Environment+SpecialFolder]::CommonApplicationData ) , ‘Avacee’ )

if( ! (Test-Path -Path $scriptSupportFolder -PathType Container -ErrorAction SilentlyContinue ) -and ! ( New-Item -Path $scriptSupportFolder -ItemType Directory ) )

{

$scriptSupportFolder = $env:temp

}

[string]$ImageFile = Join-Path -Path $scriptSupportFolder -ChildPath "cu.toast.logo.png"

[byte[]]$Bytes = [convert]::FromBase64String( $controlupLogo )

if( $Bytes.Count )

{

try

{

[System.IO.File]::WriteAllBytes( $ImageFile , $Bytes )

$logo = $ImageFile

}

catch

{

Write-Warning -Message "Error writing to file `"$ImageFile`""

$logo = $null

}

}

https://docs.microsoft.com/en-us/uwp/schemas/tiles/toastschema/schema-root

$XmlString = @"

<toast>

<visual>

<binding template="ToastGeneric">

<text>Warning!</text>

<text>WiFi signal is too low. Please move closer to your access point</text>

<image src="$Logo" placement="appLogoOverride" hint-crop="circle" />

</binding>

</visual>

</toast>

"@

try

{

Import-Module -Name StartLayout -Verbose:$false

}

catch

{

Import-Module -Name StartScreen -Verbose:$false

}

we need an AppID so grab one

[string]$AppId = Get-StartApps -name "This PC" | Where-Object AppID -NotMatch ‘AutoGenerated’ | Select-Object -ExpandProperty AppID -First 1

Write-Verbose -Message "AppId is $appid"

if( $ToastXml = New-Object -TypeName Windows.Data.Xml.Dom.XmlDocument )

{

$ToastXml.LoadXml($XmlString)

##if( $Toast = [Windows.UI.Notifications.ToastNotification]::new($ToastXml) )

if( $Toast = New-Object -TypeName Windows.UI.Notifications.ToastNotification -ArgumentList $ToastXml)

{

$toast.Priority = 1

[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($AppId).Show($Toast)

}

else

{

Throw "Failed to create toast notification from XML"

}

}“`


More info on how to configure Toast Notifications:

https://learn.microsoft.com/en-us/uwp/schemas/tiles/toastschema/schema-root

Continue reading and comment on the thread ‘How Can I Create an Alert in Solve ControlUp for Users When OneDrive.exe Isn’t Running?

‘.  Not a member? Join Here!


Categories: All Archives, ControlUp Scripts & Triggers
Topics: Automation & Alerting, ControlUp Solve, Microsoft, Microsoft Windows, Scripts, Triggers

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..