• 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

The Best Trigger for Removing a File After Boot Up in ControlUp

Posted on March 5, 2025

Multiple ControlUp users discuss the best trigger to use for deleting a specific file shortly after a machine is booted. Suggestions include using a scheduled task or event ID based trigger. The file causing the issue is a OneDriveStandAloneUpdater.exe, which consumes a large amount of cache space when running. The preferred trigger is determined to be a scheduled task set to run a few minutes after machine startup.


Read the entire ‘The Best Trigger for Removing a File After Boot Up in ControlUp’ thread below:

Looking to create a trigger that will run a script to delete a file (application automatic updater exe) shortly after the machine is booted and online. Which trigger is the best to use for this? I could do a schedule based trigger but not sure if thats the best way. Thoughts? Experiences? Thanks!


Wondering if an event id based trigger could work. E.g. trigger when the logon process completes, e.g. when explorer.exe starts?

@member this is more your territory because I think we use 4688 explorer.exe start in the analyze logon duration script


booted != logon. Are we talking CU for VDI or Desktops here? For the former I would set a trigger uptime greater or equal to 30 seconds or so. For the latter I would use at system startup

advanced > machine


I’m aware that booted is not the same as logon. It could still be a valid way. It all depends on how "time sensitive" the removal of the file is. Also when the file gets created. We need to know a little bit more about this exe file before we can really say what the best trigger is


This is for VDI. The exe is a OneDriveStandaloneUpdater.exe.

When it runs it will consume ~5gb or so of the cache disk. It’s not clear to me when it kicks itself off exactly but seems to be within the first hour or less.

Ultimately we’ll solve this with a vdisk update but am looking for something short term to help out.


@member what do you think?


easy one, asap after computer start but I would not be surprised if MS recreates it when onedrive itself starts

it is a scheduled task btw that onedrive will recreate when you disable it or just creates new ones whenever it wants as you can see here


Looking on the test machine, It ran the task 5 minutes after the machine booted up. Looks like it runs once a day. Is there a minimum delay between when a machine comes online and monitor can send an automated action to it?

From another machine, if that exe is missing, the task fails triumphantly.

closing the loop.

This trigger seems to be working well.

I found it in the archives of this wonderful place.

https://www.controlupcommunity.com/leveraging-controlup-triggers-to-restart-services-after-vm-boot-up/

Continue reading and comment on the thread ‘The Best Trigger for Removing a File After Boot Up in ControlUp’.  Not a member? Join Here!


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

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