logo

The ConnectWise Control forum has moved to ConnectWise University! This forum has been locked and is in read-only mode. Click here for instructions on how to access the new forum.

Welcome Guest! You can not login or register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Robert Picard  
#1 Posted : Tuesday, March 10, 2015 4:49:27 PM(UTC)
Robert Picard


Rank: Newbie

Joined: 3/10/2015(UTC)
Posts: 7
Canada

I am looking for a way (script, exe or other) that a user can use to enable a forced 'prompt for consent' while logged in.
If the computer is locked or the user is not logged in then to allow control.

I know this is a long outstanding item based on my forum searches.

A few things,

1. If I use the LT Tray to let the user disable ScreenConnect, and nine months later the end user enables it will this cause me issues? (expired encryption keys, software updates etc. . )
2. Is there a way to assign the ScreenConnect client to a different groups on the fly, either by scripting a app.config and reload or otherwise?
3. Similar to above, is there a way to default the 'always on top' to be true?

Basically, if I can have a script that can let the user change between two computer groups (always allowed) or (prompt then deny) it would let them have the impression of control.

Scott  
#2 Posted : Tuesday, March 10, 2015 5:01:27 PM(UTC)
Scott


Rank: Administration

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

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

Thanks: 3 times
Was thanked: 351 time(s) in 303 post(s)
Basically, are you looking for a way to bypass the requirement for Guest consent if the user is away from the machine? You can do that (and your third question) from the app.config file. We have a pretty good KB article about it here.

To bypass the prompt for consent if no User process is running and to override the client application to always be on top, your app.config file would look like:

Code:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="Elsinore.ScreenConnect.SystemSettings" type="System.Configuration.ClientSettingsSection" />
<section name="Elsinore.ScreenConnect.UserInterfaceSettings" type="System.Configuration.ClientSettingsSection" />
</configSections>
<Elsinore.ScreenConnect.SystemSettings>
<setting name="AutoConsentIfUserProcessNotRunning" serializeAs="String"> 
<value>true</value> 
</setting> 
</Elsinore.ScreenConnect.SystemSettings>
<Elsinore.ScreenConnect.UserInterfaceSettings>
<setting name="AlwaysOnTop" serializeAs="String">
<value>true</value>
</setting>
</Elsinore.ScreenConnect.UserInterfaceSettings>
</configuration>


As far as changing the client's custom properties, you can modify the client launch parameters to inject a new value for any of your clients. You would have to modify the sessionID and restart the client service in order to get the client to callback as a new session so that the custom property modification is picked up by the server, however. More info on the client launch parameters can be found here.
ScreenConnect Team
Robert Picard  
#3 Posted : Tuesday, March 10, 2015 5:04:11 PM(UTC)
Robert Picard


Rank: Newbie

Joined: 3/10/2015(UTC)
Posts: 7
Canada

Any suggestions on how I can effectively implement that on 400 computers that are loaded with ScreenConenct?
Scott  
#4 Posted : Tuesday, March 10, 2015 5:09:26 PM(UTC)
Scott


Rank: Administration

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

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

Thanks: 3 times
Was thanked: 351 time(s) in 303 post(s)
Do you have a standalone ScreenConnect install or is it part of the labtech v10 integration?
ScreenConnect Team
Robert Picard  
#5 Posted : Tuesday, March 17, 2015 1:31:35 PM(UTC)
Robert Picard


Rank: Newbie

Joined: 3/10/2015(UTC)
Posts: 7
Canada

Hi,

We are lab-tech, I assume I can upload a file but I think this inst working.

I tried deploying the app.config file to one of my systems.

The alwaysontop value is being ignored by the host'[img]null[/img]s chat window, if I right click on the chat window I can turn on always on top but it doesnt appear to be picking up the file from C:\Program Files (x86)\ScreenConnect Client (11042cfc7a28f56c)\App_ClientConfig\app.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>

<configSections>
<section name="Elsinore.ScreenConnect.SystemSettings" type="System.Configuration.ClientSettingsSection" />
<section name="Elsinore.ScreenConnect.UserInterfaceSettings" type="System.Configuration.ClientSettingsSection" />
</configSections>

<Elsinore.ScreenConnect.SystemSettings>
<setting name="AutoConsentIfUserProcessNotRunning" serializeAs="String">
<value>true</value>
</setting>
</Elsinore.ScreenConnect.SystemSettings>


</configuration>




Scott  
#6 Posted : Tuesday, March 17, 2015 1:46:48 PM(UTC)
Scott


Rank: Administration

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

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

Thanks: 3 times
Was thanked: 351 time(s) in 303 post(s)
On the remote machine, the app.config file needs to go in the root client installation folder (C:\Program Files (x86)\ScreenConnect Client (11042cfc7a28f56c)\app.config instead of C:\Program Files (x86)\ScreenConnect Client (11042cfc7a28f56c)\App_ClientConfig\app.config)

The App_ClientConfig directory is only for the ScreenConnect server.
ScreenConnect Team
Robert Picard  
#7 Posted : Tuesday, March 17, 2015 1:51:56 PM(UTC)
Robert Picard


Rank: Newbie

Joined: 3/10/2015(UTC)
Posts: 7
Canada

I just moved the file. Still didn't work?

Did the rundll32 command to clear the cache and restarted the service.

Scott  
#8 Posted : Tuesday, March 17, 2015 3:42:35 PM(UTC)
Scott


Rank: Administration

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

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

Thanks: 3 times
Was thanked: 351 time(s) in 303 post(s)
Code:

<?xml version="1.0" encoding="utf-8"?>
<configuration>

<configSections>
<section name="Elsinore.ScreenConnect.SystemSettings" type="System.Configuration.ClientSettingsSection" />
<section name="Elsinore.ScreenConnect.UserInterfaceSettings" type="System.Configuration.ClientSettingsSection" />
</configSections>

<Elsinore.ScreenConnect.SystemSettings>
<setting name="AutoConsentIfUserProcessNotRunning" serializeAs="String">
<value>true</value>
</setting>
</Elsinore.ScreenConnect.SystemSettings>


</configuration>


If that's your app.config file, then you're not specifying for AlwaysOnTop, you'd have to use the following:

Code:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
	<configSections>
		<section name="Elsinore.ScreenConnect.SystemSettings" type="System.Configuration.ClientSettingsSection" />
		<section name="Elsinore.ScreenConnect.UserInterfaceSettings" type="System.Configuration.ClientSettingsSection" />
	</configSections>
	<Elsinore.ScreenConnect.SystemSettings>
		<setting name="AutoConsentIfUserProcessNotRunning" serializeAs="String">
			<value>true</value>
		</setting>
	</Elsinore.ScreenConnect.SystemSettings>
	<Elsinore.ScreenConnect.UserInterfaceSettings>
		<setting name="AlwaysOnTop" serializeAs="String">
			<value>true</value>
		</setting>
	</Elsinore.ScreenConnect.UserInterfaceSettings>
</configuration>


Make sure that's the contents of the remote machine's app.config file and then restart the client service.
ScreenConnect Team
Robert Picard  
#9 Posted : Tuesday, March 17, 2015 3:48:17 PM(UTC)
Robert Picard


Rank: Newbie

Joined: 3/10/2015(UTC)
Posts: 7
Canada

awesome that did it.

I think my XML was bad and I should feel bad.


Quick question using an event is there any way to always open the chat window once you connect to a remote session?
This would solve a concern a lot of my clients have about privacy.
Scott  
#10 Posted : Tuesday, March 17, 2015 4:03:52 PM(UTC)
Scott


Rank: Administration

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

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

Thanks: 3 times
Was thanked: 351 time(s) in 303 post(s)
Well, you could create a trigger to make a call to a service method based upon Event.EventType = 'Connected' AND Connection.ProcessType = 'Host'. This will effectively send a message whenever a Host connects to a session. I actually wrote an Extension to do just this but never released it because it required some configuration which isn't all that easy and our goal with extensions is for them to work out-of-the-box. The Extension's service method looks like:

Code:

<%@ WebHandler Language="C#" Class="Service" %>

using System;
using Elsinore.ScreenConnect;

public class Service : WebServiceBase
{
	public void SendMessage(Guid sessionID)
	{
		SessionManagerPool.Demux.AddSessionEvent(sessionID, new SessionEvent { Host = "", EventType = SessionEventType.QueuedMessage, Data = "Test Message"});
	}
}


And the Extension's SessionEventTrigger.xml file looks like:

Code:

<?xml version="1.0"?>
<SessionEventTriggers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SessionEventTrigger Name="Open chat window when Host connects" EventFilter="Event.EventType = 'Connected' AND Connection.ProcessType = 'Host'">
    <Actions>
    	<TriggerAction xsi:type="HttpTriggerAction" Uri="http://SERVER_URI_HERE:WEB_SERVICE_PORT_HERE/App_Extensions/EXTENSION_ID_HERE/Service.ashx/SendMessage/{Session.SessionID}" HttpMethod="GET" />
    </Actions>
  </SessionEventTrigger>
</SessionEventTriggers>


The Extension's Manifest.xml looks like:

Code:

<?xml version="1.0" encoding="utf-8"?>
<ExtensionManifest>
	<Version>1.0</Version>
	<Name>Send Chat Message Upon Host Connection</Name>
	<Author></Author>
	<ShortDescription>ShortDescription should go here.</ShortDescription>
	<Components>
		<WebServiceReference SourceFile="Service.ashx" />
		<SessionEventTriggerDefinition SourceFile="SessionEventTrigger.xml" />
	</Components>
</ExtensionManifest>

Edited by user Tuesday, March 17, 2015 4:04:28 PM(UTC)  | Reason: accidentally a word.

ScreenConnect Team
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.