 Rank: Advanced Member Medals:  Joined: 7/22/2011(UTC) Posts: 54   Thanks: 2 times Was thanked: 19 time(s) in 10 post(s)
|
Hi everyone,
I just added access to the logged in user and guest operating system into the library.
SCTray now also shows the usernames in the session list.
|
 1 user thanked LaSepp for this useful post.
|
|
|
 Rank: Guest Joined: 5/20/2016(UTC) Posts: 1  Location: Thessaloniki
|
Hello LaSepp First of all, I would like to thank you for your contribution. By using your last updated source code I tried to get more attributes for every session (exactly like you did for the logged in user and the operating system) but I didn't manage. p.e. 1) I add the following declarations in the public class SCHostSession at the SCHostSession.cs file public String GuestSystemMemoryTotalMegabytes { get { return _GuestSystemMemoryTotalMegabytes; } } internal String _GuestSystemMemoryTotalMegabytes; 2) I add the following statement in the internal List<SCHostSession> getSessions(String category) at the SCHostInterface.cs scsession._GuestSystemMemoryTotalMegabytes = session["GuestSystemMemoryTotalMegabytes"].ToString() ; My final target is to get all the following information for every session Hosts Connected: Anastasios Mantzanas (6m) Guests Connected: Terminal (21m) Last Update 1m ago
Logged on User:KXAITOGLOU\user Idle Time:5m Domain\PC Name:NOMATH\KXAITOGLOU Operating System :Windows 7 Professional (6.1.7601) Processor:AMD A8-6500 APU with Radeon(tm) HD Graphics (4 λογικοί πυρήνεςl) RAM :2222 MB / 4002 MB IP Address :84.205.244.134 Client Version:5.5.10194.5861Do I forget something? Can you help me please? Thanks in advance!!! Originally Posted by: LaSepp  Hi everyone,
I just added access to the logged in user and guest operating system into the library.
SCTray now also shows the usernames in the session list.
|
|
|
|
 Rank: Guest Joined: 7/25/2016(UTC) Posts: 7  Location: Hyderabad
|
First of all I would like to thank you LaSepp !!! How do I Join the Hosted Sessions? Edited by user Monday, August 1, 2016 10:27:07 AM(UTC)
| Reason: Not specified
|
|
|
|
 Rank: Guest Joined: 10/25/2016(UTC) Posts: 1  Location: Louisville, KY
|
LaSepp, thanks again for everything you have coded so far!!! It has been very helpful. I am putting this out there as I don't know if anyone else had issues with the upgrade to SC 6. I kept getting the user credentials dialog box pop up over and over. The config I am working with: Hosted at ScreenConnect and using the Remote Access product only (limited functionality of full product). Keep in mind that these changes worked for me and I don't know enough about SC to 100% know if they will work across the board for everyone else: SCHostInterface.cs Function buildHostSessionInfoParam Change this Object info = new Object[] { category, null, null, 0 }; to this Object info = new Object[] { 2, new String[] { category }, null, null, 0 }; SCHostInterface.cs Function HttpPost Change this req.ContentType = "text/plain; charset=UTF-8"; to this req.ContentType = "application/json"; Last, find all instances of .StartsWith("ScreenConnect/5") and add an entry for version 6, so most lines look something like this serverVersion.StartsWith("ScreenConnect/5") || serverVersion.StartsWith("ScreenConnect/6") If anyone has a sec, tell me how I find out what the "2" in the first change is doing. Thanks, willzzzzzzzz Edited by user Tuesday, October 25, 2016 3:37:24 PM(UTC)
| Reason: forgot to add the version check
|
|
|
|
 Rank: Advanced Member Medals:  Joined: 7/22/2011(UTC) Posts: 54   Thanks: 2 times Was thanked: 19 time(s) in 10 post(s)
|
Hello together, as we are considering migration to V6 but we aren't there yet I today took some time to upgrade the library with V6 compatibility. the changes willzzzzzzzz made are a first step, but there still needed to be some work with the authentication - at least in my test environment. I don't know if these changes may fix some Authentication issues in previous versions, but at least in V6 it seems to work now with AD Authentication and Forms Authentication. I've also uploaded the source and Binaries to Github: https://github.com/LaSepp/ScreenConnectIntegrationAs soon as the FTP Access to my Hoster works again I will also upload the newest ZIP to the known URL. I hope this will help fix some of the issues some of you are having. Also @willzzzzzzzz: The "2" is the session type (0=support, 1=meet, 2=access) :-) Edited by user Tuesday, October 25, 2016 7:37:11 PM(UTC)
| Reason: Add Explanation about session type
|
 1 user thanked LaSepp for this useful post.
|
|
|
 Rank: Advanced Member Medals:  Joined: 7/22/2011(UTC) Posts: 54   Thanks: 2 times Was thanked: 19 time(s) in 10 post(s)
|
Hi jkalaits, I don't know if i might be way too late, but I have also added support to get the extended session details (including screenshot). There is now a property .details that fetches the additional information from the server. Please note, accessing the details is a expensive operation - this will take some time as it is a seperate request for each session. Originally Posted by: jkalaits  Hello LaSepp
First of all, I would like to thank you for your contribution. By using your last updated source code I tried to get more attributes for every session (exactly like you did for the logged in user and the operating system) but I didn't manage.
|
 1 user thanked LaSepp for this useful post.
|
|
|
 Rank: Guest Joined: 10/31/2016(UTC) Posts: 1   Location: New York City Thanks: 3 times
|
@LaSepp, Thank You Sir. I have grown to really rely on this tool and when we upgraded to version 6 and it didn't work I decided to be patient and pray that you'd update it. Thanks to @willzzzzzzzz for not being so quiet about it. One question though, is there a reason that this couldn't be added to the ScreenConnect App store or something? I can tell you that I would've paid a couple bucks for it. Still will if you want to PM your details. You efforts don't go unnoticed.
|
|
|
|
 Rank: Advanced Member Medals:  Joined: 7/22/2011(UTC) Posts: 54   Thanks: 2 times Was thanked: 19 time(s) in 10 post(s)
|
Hello together,
I've posted a new library update to my site and github: Now it is possible to trigger the "run command" from code (and of course the tray sample)!
The session class now has a runCommand() function that takes any command and runs it on the agent, returning the output. A word of warning: As there is no simple way to really match the command request to the response this function might fail if multiple commands are run in parallel on the same agent.
As the runCommand function needed to get access to the session events, they also are accessible now via the SessionDetails class. So now you can get the information needed to tell who logged on when, copied which files and triggerd ran which commands (and everything else that the timeline displays)!
Hope you all enjoy this update and can use these new additions!
|
|
|
|
 Rank: Advanced Member Medals:  Joined: 7/22/2011(UTC) Posts: 54   Thanks: 2 times Was thanked: 19 time(s) in 10 post(s)
|
I've posted a new version to github and the download.
The connection to SC 6.1 has been fixed - it should connect fine now :)
|
 1 user thanked LaSepp for this useful post.
|
|
|
 Rank: Advanced Member Medals:  Joined: 7/22/2011(UTC) Posts: 54   Thanks: 2 times Was thanked: 19 time(s) in 10 post(s)
|
The library has been updated.
Login with SC version 6.3 and above is supported.
Also OTP Authentication can now be used - see ScTray Application for how to use it in your own application.
|
|
|
|
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.