• 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

Setting Up a File-Triggered Maintenance Mode in ControlUp

Posted on January 8, 2026

A question was asked about creating a trigger that would monitor a file on a server and put the server into maintenance mode if it does not exist. The response suggested using a scheduled trigger with a PowerShell script to check the file’s presence. The suggested script can be found at \\SERVERNAME\Core\ControlUpFileShareTest.txt and can be run with the command "powershell.exe -file c:\tech\scripts\find_files.ps1."


Read the entire ‘Setting Up a File-Triggered Maintenance Mode in ControlUp’ thread below:

Anyone know if it is possible to setup af trigger that looks for at given file on a server? If it does not exist the trigger needs to put the server into maintenance mode. I cant seem to find a way todo this with the filter editor


correct we don’t monitor the file system from the triggers side. What you could do is a scheduled trigger that runs an sba, looks at the file and if it has your required state write a evenlog item that you respond to with a second trigger


I used this PS script in Scoutbees to check for the presence of a file to confirm the SBM share is available:

powershell.exe -file c:\tech\scripts\find_files.ps1

Find_files.ps1:

test-path -path \\SERVERNAME\Core\ControlUpFileShareTest.txt

Continue reading and comment on the thread ‘Setting Up a File-Triggered Maintenance Mode in ControlUp’.  Not a member? Join Here!


Categories: All Archives, ControlUp for VDI, ControlUp Scripts & Triggers, ControlUp Synthetic Monitoring
Topics: Automation & Alerting, PowerShell, SaaS & Web App Availability Testing, Scripts, Synthetic Monitoring, 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–2026 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..