• 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

Finding Multiple User Sessions for a Specific Application in ControlUp

Posted on January 11, 2023

A user asked for the best way to see which users are running multiple sessions of the same application. It was suggested to use the "published application usage details report" or the "Session – Activity" report, and to further narrow down the required data, use PowerShell API. It was also mentioned that the result needs to be run on a monitor. The full instruction can be found at https://support.controlup.com/v1/docs/invoke-cuquery#example-6-search-for-all-machines-with-the-name-monitor.


Read the entire ‘Finding Multiple User Sessions for a Specific Application’ thread below:

I’m trying to run a report to see what users are logging into multiple sessions using the same application(executable). What is the best way of going about gathering this information.


You can use the published application usage details report, select the application, click the total instances and it will show you each users session for that app during the time. You would then need to look for overlap.


You can do the same with Sessions – Activity. Filter on Initial Program and then look for overlap.Session – Activity may be the way to go as you can dump it to CSV, open it in Excel, and then do some Excel magic.Thanks,


I’ll try that.Worked like a champ.Now i’m stuck trying to compare the difference between a published desktop and a seemless application’s resource utilization. How would I go about doing that comparison?I think it’s a very good use case for our PowerShell API 🙂


“`$pathtomodule = (Get-ChildItem "C:\Program Files\Smart-X\ControlUpMonitor*ControlUp.PowerShell.User.dll" -Recurse | Sort-Object LastWriteTime -Descending)[0]

Import-Module $pathtomodule

$data = Invoke-CUQuery -Table Processes -Fields sAccount,sCommandLine,FQDN -Take 100000 -Search ‘notepad‘

$a = $data.data | Group-Object sAccount,sCommandLine,FQDN“`PS C:\Windows\system32> $a

Count Name Group

—– —- —–

2 CUEMEA\SamuelL, "C:\Wi… {@{key=e4adb9ff-a007-41d2-9c65-076271719746; sAccount=CUEMEA\SamuelL; sComman…

1 CUEMEA\Scoutbees02, "C… {@{key=872ed335-b36f-4e1c-a7a1-0b15927531bf; sAccount=CUEMEA\Scoutbees02; sCo…

1 CUEMEA\samuell, notepa… {@{key=5f913531-8943-4aff-9321-f823b21a9fd9; sAccount=CUEMEA\samuell; sComman…

1 CUEMEA\samuell, "C:\Wi… {@{key=3a578daf-9354-46da-86c9-d02c4ae6f795; sAccount=CUEMEA\samuell; sComman…

1 CUEMEA\samuell, "C:\Wi… {@{key=cc3efc82-de64-4602-87ef-165a8da181d7; sAccount=CUEMEA\samuell; sComman…Was wrong 🙂Better like this“`$pathtomodule = (Get-ChildItem "C:\Program Files\Smart-X\ControlUpMonitor*ControlUp.PowerShell.User.dll" -Recurse | Sort-Object LastWriteTime -Descending)[0]

Import-Module $pathtomodule

$data = Invoke-CUQuery -Table Processes -Fields sAccount,sCommandLine,FQDN -Take 100000 -Search ‘notepad‘

$a = $data.data | Group-Object sCommandLine,sAccount

foreach ($line in $a){

$b = @($line.group | Group-Object FQDN)

if ($b.count -ge 2){

$ofs = " & "

Write-Output "User $($line.group[0].sAccount) has launch it on $($b.Name) ($($line.group[0].sCommandLine)"

}

}“`Result:User CUEMEA\SamuelL has launch it on EmeaMonitor1.cuemea.io & PSWIN2019-03.cuemea.io ("C:\Windows\system32\notepa

d.exe"It needs to be run on a monitorhttps://support.controlup.com/v1/docs/invoke-cuquery#example-6-search-for-all-machines-with-the-name-monitor

Continue reading and comment on the thread ‘Finding Multiple User Sessions for a Specific Application in ControlUp’.  Not a member? Join Here!


Categories: All Archives, ControlUp Synthetic Monitoring
Topics: Microsoft Windows, PowerShell, Reporting, SaaS & Web App Availability Testing, 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..