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

ControlUp Community

Connect, Learn, and Grow

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

Understanding the use of Invoke-CUQuery -Table in ControlUp

Posted on March 7, 2026

A user asked about using Invoke-CUQuery -Table and sIPAddresses to enrich alerts for ControlUp. They got it to work using individual quotes for each field. The discussion can be found at https://support.controlup.com/v1/docs/monitor-cluster-powershell-fields-by-table#computers.


Read the entire ‘Understanding the use of Invoke-CUQuery -Table in ControlUp’ thread below:

Happy Saturday, everyone.

Hopefully this is an easy question. I’m learning how to use the Invoke-CUQuery -Table command within a PowerShell script to enrich alerts, and I need to know which table contains the IP address of a computer.


Computers or ComputerView. IPAddresses field or something like that. See https://support.controlup.com/v1/docs/monitor-cluster-powershell-fields-by-table#computers

Do note that this is a text field. If a machine has multiple IP addresses you’ll need to parse the field. I think there is a new line between addresses


Hey Dennis. Thanks.

Odd issue. The following works:

invoke-cuquery -table Computers -where "sName = ‘ILARLWCPA2040’" -fields sIPAddresses

The following errors:

invoke-cuquery -table Computers -where "sName = ‘ILARLWCPA2040’" -fields "sIPAddresses,sOSCaption"

with:

invoke-cuquery : Query has failed with error: ‘Acceptable data loss threshold was crossed with: 91.6666666666667 percentage, query is aborted.’

At line:3 char:1

+ invoke-cuquery -table Computers -where "sName = ‘ILARLWCPA2040’" -fie …

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

`+ CategoryInfo : InvalidArgument: (:) [Invoke-CUQuery], InvalidOperationException`

`+ FullyQualifiedErrorId : General,ControlUp.PowerShell.User.Cmdlets.QueryMonitorService.InvokeQueryCmdlet`


I got it to work using * , but not sure why adding two fields errored out.


Each field needs quotes individually.

So -fields “sIPAdresses”,”sOSCaption”


Oh….

Continue reading and comment on the thread ‘Understanding the use of Invoke-CUQuery -Table in ControlUp’.  Not a member? Join Here!


Categories: All Archives, ControlUp Scripts & Triggers
Topics: Automation & Alerting, ControlUp Enrich, 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

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

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