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

Notification

Icon
Error

Options
Go to last post Go to first unread
dhuang6  
#1 Posted : Friday, March 24, 2017 1:09:18 AM(UTC)
dhuang6


Rank: Guest

Joined: 3/2/2017(UTC)
Posts: 4
United States
Location: Madison

Hi all,

I work at a msp and we need to be able to audit why people sign onto machines. With Labtech11 getting rid of Labvnc soon which prompted technicians to enter a ticket number before they could rdp. I was hoping that we could program Screenconnect to get the same functionality. I've seen the old solutions that worked with 5.5 and older, and have tried to get this to work in our version but the functions don't look the same in these newer versions.
http://forum.screenconne...ket-notes.aspx#post37103
I was wondering if anyone has gotten this to work in 6.1 and if they would be willing to post their code?

Thanks

Edited by user Friday, March 24, 2017 1:11:05 AM(UTC)  | Reason: Not specified

Scott  
#2 Posted : Friday, March 24, 2017 12:28:39 PM(UTC)
Scott


Rank: Administration

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

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

Thanks: 3 times
Was thanked: 305 time(s) in 262 post(s)
So, it's not pretty or clean, but you can do this in 6.2 (very likely 6.1 also but I did not test), by making the following modification to the Host.aspx file. Before attempting this please ensure you have an up-to-date backup of your ConnectWise Control installation

Find the section that originally looks like:

Code:

} else if (commandName == 'Join') {
				SC.launch.startJoinSession(
					null,
					function (userData, promptFieldMap, onSuccess, onFailure) {
						SC.http.performWithServiceContext(SC.util.doesBrowserNeedSyncServiceContextForLaunch(), function () {
							SC.service.GetAccessToken(
								sessionInfo.SessionGroupPath[0],
								sessions[0].SessionID,
								function (accessTokenString) {
									onSuccess(
										SC.util.getClientLaunchParameters(
											sessions[0].SessionID,
											sessions[0].SessionType,
											sessions[0].Name,
											null,
											accessTokenString
										)
									);
								}
							);
						});
					},
					false,
					null,
					null,
					null
				);


And change it to look like:
Code:

} else if (commandName == 'Join') {
				var ticket = prompt("Enter Ticket Number");

				if (ticket !== ''){
					window.addEventToSessions(
						window.getSessionGroupUrlPart()[0], 
						SC.types.SessionType.Access,
						[window.getSessionUrlPart()], 
						SC.types.SessionEventType.AddedNote, 
						null,
						ticket,
						false,
						false,
						true
					);
					SC.launch.startJoinSession(
						null,
						function (userData, promptFieldMap, onSuccess, onFailure) {
							SC.http.performWithServiceContext(SC.util.doesBrowserNeedSyncServiceContextForLaunch(), function () {
								SC.service.GetAccessToken(
									sessionInfo.SessionGroupPath[0],
									sessions[0].SessionID,
									function (accessTokenString) {
										onSuccess(
											SC.util.getClientLaunchParameters(
												sessions[0].SessionID,
												sessions[0].SessionType,
												sessions[0].Name,
												null,
												accessTokenString
											)
										);
									}
								);
							});
						},
						false,
						null,
						null,
						null
					);
				} else
					alert("Invalid Ticket Number");


Again, I haven't tested this thoroughly in the wild, but it will prompt for text input and only allow it to proceed if any input is entered. The input is added to the session as a Note. Like I mentioned above, make sure you have a backup of your installation before attempting this modification, you can find info for that here.
ScreenConnect Team
dhuang6  
#3 Posted : Friday, March 24, 2017 4:00:46 PM(UTC)
dhuang6


Rank: Guest

Joined: 3/2/2017(UTC)
Posts: 4
United States
Location: Madison

Hi,

Thanks, I updated our host document.
Pending a reboot and will update if this enables ticket logging via notes.

I made a backup of the host file, did you want me to make a backup of the entire software folder?

Thanks

Edited by user Friday, March 24, 2017 7:58:05 PM(UTC)  | Reason: Not specified

mreimers  
#4 Posted : Friday, August 11, 2017 10:02:17 PM(UTC)
mreimers


Rank: Guest

Joined: 8/11/2017(UTC)
Posts: 2
United States
Location: Reno

Scott,

I tried this on our on-premise Labtech 11 server running Patch 14 with Screenconnect 6.3 unsuccessfully. I modified the Hosts.aspx file and restarted the services. No go on a prompt for ticket #.javascript:insertsmiley('Confused ','/Images/Emoticons/msp_confused.gif')

Any ideas why this might not be functional? This is a great feature to have for us MSP's using Labtech so I hope it's just something I did incorrectly.

Thanks for documenting this and explaining it all for us!
javascript:insertsmiley('ThumpUp ','/Images/Emoticons/msp_thumbup.gif')

Edited by user Friday, August 11, 2017 10:03:03 PM(UTC)  | Reason: Not specified

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.