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

Notification

Icon
Error

2 Pages<12
Options
Go to last post Go to first unread
LaSepp  
#51 Posted : Thursday, April 14, 2016 10:12:38 AM(UTC)
LaSepp


Rank: Advanced Member

Medals: Level 2: Lent a Helping Hand! 10 Thanks!

Joined: 7/22/2011(UTC)
Posts: 53
Man
Germany

Thanks: 2 times
Was thanked: 17 time(s) in 9 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.
thanks 1 user thanked LaSepp for this useful post.
dcworks on 4/27/2016(UTC)
jkalaits  
#52 Posted : Friday, May 20, 2016 12:52:51 PM(UTC)
jkalaits


Rank: Guest

Joined: 5/20/2016(UTC)
Posts: 1
Greece
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.5861


Do I forget something? Can you help me please?

Thanks in advance!!!


Originally Posted by: LaSepp Go to Quoted Post
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.


sudhirdas86@gmail.com  
#53 Posted : Monday, August 1, 2016 10:00:03 AM(UTC)
sudhirdas86@gmail.com


Rank: Guest

Joined: 7/25/2016(UTC)
Posts: 7
India
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

willzzzzzzzz  
#54 Posted : Tuesday, October 25, 2016 3:31:21 PM(UTC)
willzzzzzzzz


Rank: Guest

Joined: 10/25/2016(UTC)
Posts: 1
United States
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

LaSepp  
#55 Posted : Tuesday, October 25, 2016 7:27:29 PM(UTC)
LaSepp


Rank: Advanced Member

Medals: Level 2: Lent a Helping Hand! 10 Thanks!

Joined: 7/22/2011(UTC)
Posts: 53
Man
Germany

Thanks: 2 times
Was thanked: 17 time(s) in 9 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/ScreenConnectIntegration
As 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

thanks 1 user thanked LaSepp for this useful post.
oangaza on 10/31/2016(UTC)
LaSepp  
#56 Posted : Tuesday, October 25, 2016 8:40:52 PM(UTC)
LaSepp


Rank: Advanced Member

Medals: Level 2: Lent a Helping Hand! 10 Thanks!

Joined: 7/22/2011(UTC)
Posts: 53
Man
Germany

Thanks: 2 times
Was thanked: 17 time(s) in 9 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 Go to Quoted Post
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.



thanks 1 user thanked LaSepp for this useful post.
oangaza on 10/31/2016(UTC)
oangaza  
#57 Posted : Monday, October 31, 2016 4:38:42 PM(UTC)
oangaza


Rank: Guest

Joined: 10/31/2016(UTC)
Posts: 1
Man
United States
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.
LaSepp  
#58 Posted : Thursday, November 17, 2016 11:20:44 PM(UTC)
LaSepp


Rank: Advanced Member

Medals: Level 2: Lent a Helping Hand! 10 Thanks!

Joined: 7/22/2011(UTC)
Posts: 53
Man
Germany

Thanks: 2 times
Was thanked: 17 time(s) in 9 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!
LaSepp  
#59 Posted : Tuesday, February 7, 2017 7:43:44 PM(UTC)
LaSepp


Rank: Advanced Member

Medals: Level 2: Lent a Helping Hand! 10 Thanks!

Joined: 7/22/2011(UTC)
Posts: 53
Man
Germany

Thanks: 2 times
Was thanked: 17 time(s) in 9 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 :)
Users browsing this topic
2 Pages<12
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.