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
RGgusnowski  
#1 Posted : Saturday, February 13, 2016 8:03:58 PM(UTC)
RGgusnowski


Rank: Advanced Member

Medals: Level 1: Random Act of Kindness! Received One Thanks!

Joined: 4/22/2014(UTC)
Posts: 97
Canada
Location: Edmonton

Was thanked: 7 time(s) in 6 post(s)
I would like to get ScreenConnect to do a few custom things like lock the screen on connect & disconnect. I know that the settings go in the app.config file, and I think I have the syntax right, but I was wondering if someone could look this over?

<?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="HideWallpaperOnConnect" serializeAs="String">
<value>false</value>
</setting>
<setting name="ShowBalloonOnConnect" serializeAs="String">
<value>false</value>
</setting>
</Elsinore.ScreenConnect.UserInterfaceSettings>
<setting name="SupportLockMachineOnDisconnect" serializeAs="String">
<value>true</value>
</setting>
<setting name="SupportLockMachineOnConnect" serializeAs="String">
<value>true</value>
</setting>
<setting name="ShowBalloonOnConnect" serializeAs="String">
<value>true</value>
</setting>
</configuration>

I'm a bit confused between these two flags:

"SupportAutoConsentIfUserProcessNotRunning" vs "AccessAutoConsentIfUserProcessNotRunning"

What I would like is giving a user a chance to decline a session, but if no one is present at the machine, a connect will proceed after 5-10 seconds.

If someone can explain this a bit and check my sample, it would be appreciated.

Thanks...

Robert

Ben B  
#2 Posted : Monday, February 15, 2016 2:53:21 PM(UTC)
Ben B


Rank: Administration

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

Joined: 10/2/2015(UTC)
Posts: 329

Thanks: 1 times
Was thanked: 71 time(s) in 63 post(s)
Good morning!

I noticed that you're using the following section definitions:

Code:

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


This is fine if you're using version 5.2 or earlier. If you're using version 5.3 or greater, then you'll want to change those two section definitions to:

Code:

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


Again, if you're on version 5.3 or later, you'll also want to remove the references to Elsinore in the config sections, e.g., in:

Code:

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


Additionally, the following settings in your app.config currently exist outside of the UserInterfaceSettings section:

Code:

<setting name="SupportLockMachineOnDisconnect" serializeAs="String">
<value>true</value>
</setting>
<setting name="SupportLockMachineOnConnect" serializeAs="String">
<value>true</value>
</setting>
<setting name="ShowBalloonOnConnect" serializeAs="String">
<value>true</value>
</setting>
</configuration>


Move these three settings to the UserInterfaceSettings section in order for them to work.

Regarding the SupportAutoConsentIfUserProcessNotRunning and AccessAutoConsentIfUserProcessNotRunning settings: these are only applicable if you're on version 5.4 or later. In essence, setting SupportAutoConsentIfUserProcessNotRunning to true means that if no user is logged into the endpoint, then consent to control the machine is granted to the host on Support sessions without guest interaction. Setting this to false means that if no user is logged into the endpoint, then the guest must still fulfill the host's request to control the machine on Support sessions. AccessAutoConsentIfUserProcessNotRunning works the same way, but only applies to Access sessions.

Lastly, the following KB article explains the app.config specification in more detail:

http://help.screenconnec...t_of_app.config_settings

I hope this helps!

Edited by user Monday, February 15, 2016 4:56:26 PM(UTC)  | Reason: Not specified

ScreenConnect Team
RGgusnowski  
#3 Posted : Tuesday, February 16, 2016 4:51:06 PM(UTC)
RGgusnowski


Rank: Advanced Member

Medals: Level 1: Random Act of Kindness! Received One Thanks!

Joined: 4/22/2014(UTC)
Posts: 97
Canada
Location: Edmonton

Was thanked: 7 time(s) in 6 post(s)
I have my app.config working 98% of the way that I would like.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="ScreenConnect.SystemSettings" type="System.Configuration.ClientSettingsSection" />
<section name="ScreenConnect.UserInterfaceSettings" type="System.Configuration.ClientSettingsSection" />
</configSections>
<ScreenConnect.SystemSettings>
<setting name="AutoConsentIfUserProcessNotRunning" serializeAs="String">
<value>true</value>
</setting>
</ScreenConnect.SystemSettings>
<ScreenConnect.UserInterfaceSettings>
<setting name="HideWallpaperOnConnect" serializeAs="String">
<value>tue</value>
</setting>
<setting name="ShowBalloonOnConnect" serializeAs="String">
<value>true</value>
</setting>
<setting name="AccessLockMachineOnDisconnect" serializeAs="String">
<value>true</value>
</setting>
<setting name="SupportLockMachineOnDisconnect" serializeAs="String">
<value>true</value>
</setting>
<setting name="AccessLockMachineOnConnect" serializeAs="String">
<value>true</value>
</setting>
</ScreenConnect.UserInterfaceSettings>
</configuration>


Right now SC locks on connect which is better than nothing. What I would like is a prompt for the user to accept/decline (if a user is present, and then connect automatically if there is no response after a given time period. Is this possible?

Thanks

Mike  
#4 Posted : Tuesday, February 16, 2016 5:50:49 PM(UTC)
Mike


Rank: Administration

Medals: Level 3: Shirt off your back! Received 25 Thanks!

Joined: 5/30/2012(UTC)
Posts: 501
Location: Raleigh, NC

Thanks: 56 times
Was thanked: 82 time(s) in 68 post(s)
This is a feature we're looking to include in a 6.x release: https://screenconnect.us...ter-the-count-down-ends/
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.