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