• 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 to Run Scripts Periodically in ControlUp Edge DX

Posted on March 1, 2023

A user asked if it was possible to run a script periodically on a subset of clients in Edge DX. Suggested methods included using device tags and environment variables, or using Get-Random. Filtering by Edge DX device group is possible with the SIPDEVICEGROUP environment variable. More information can be found in the ControlUp documentation at https://support.controlup.com/docs/edge-dx-scripting-guide#example-for-powershell.


Read the entire ‘Running Scripts Periodically in Edge DX’ thread below:

Guys!

Is there a way to run a scripts periodically (Long Interval Timer (600 seconds) but only on a sub set of clients from within Edge DX?

I have a file copy script (Big thanks to @member) that measures throughput to/from a file share on a server and I don’t really want ALL clients to do it at the same time since it would probably cause some congestion 🙂


Iirc somebody mentioned a way could be to use the device tags, and then in the script read an environment variable that has the tag, only continue if it matches the tag of the machines you want to run the scripts on? Can’t find the thread right now, but it was along those lines.

Or a quick&dirty way would be to launch on every machine, and use a Get-Random with a small calculation to see if the script should proceed with the test:

If ((Get-Random -Minimum 0 -Maximum 10) -ge 9) {

`Write-Host ‘testing’`

}

Else {

`Write-Host ‘Nope, not this time.’`

}

That should have the script run 1 out of 10 times or so.


You can also filter by Edge DX device group with the SIPDEVICEGROUP environment variable.


https://support.controlup.com/docs/edge-dx-scripting-guide#example-for-powershellThx @member thats the method I meant when I said ‘tags’.

Continue reading and comment on the thread ‘How to Run Scripts Periodically in ControlUp Edge DX’.  Not a member? Join Here!


Categories: All Archives, ControlUp for Desktops, ControlUp Scripts & Triggers
Topics: Physical Desktops, PowerShell, 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..