logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
MC_Ahayward  
#1 Posted : Tuesday, June 6, 2017 1:31:07 PM(UTC)
MC_Ahayward


Rank: Guest

Joined: 9/21/2016(UTC)
Posts: 2
Location: Pittsburgh, PA

I'm looking to create a session group where only PC's that are online are visible (I've used (GuestConnectedCount > 0) for this in other groups as '= 0' yields only offline machines.
However I need a filter to show only PC's with no connected user. I'm not very familiar with scripting, so my attempts to filter out all non-null $USERNAME haven't been successful.
Any suggestions are greatly appreciated.
Thanks!
Scott  
#2 Posted : Tuesday, June 6, 2017 2:05:47 PM(UTC)
Scott


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 3/28/2014(UTC)
Posts: 2,468
United States

Thanks: 3 times
Was thanked: 304 time(s) in 261 post(s)
So you're almost all of the way there, just a bit of a misunderstanding about what $USERNAME means. The $USERNAME variable represents the currently logged in Host/Technician's username within ScreenConnect (ie your username, not the remote machine). The property that you would want to use instead is GuestLoggedOnUserName. The following group displays any session where the Guest is connected but there is no value for the GuestLoggedOnUserName (or rather when the length of the value is 0).

Code:

GuestConnectedCount > 0 AND LEN(GuestLoggedOnUserName) = 0
ScreenConnect Team
MC_Ahayward  
#3 Posted : Tuesday, June 6, 2017 2:14:07 PM(UTC)
MC_Ahayward


Rank: Guest

Joined: 9/21/2016(UTC)
Posts: 2
Location: Pittsburgh, PA

Ah, thank you very much for the explanation & script. Works perfectly.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.