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.



Go to last post Go to first unread
Ben B  
#1 Posted : Monday, October 26, 2015 3:24:59 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)
To image a machine with an installed unattended access client, please follow best practices outlined here.

UpdateClientSessionGuid.exe is useful if you happen to image machines with an installed unattended access client using the same session identifier.

UpdateClientSessionGuid.exe allows you to easily update the client session identifier GUID on imaged machines. The exe launches a PowerShell script that searches the registry for all keys of the form "ScreenConnect Client ([xxxxxxxxxxxxxxxx])", updates each key's ImagePath value with a new session identifier, and restarts each client service.

The script relies on the .NET method Guid.NewGuid to create new session identifiers, so it is very unlikely that any two machines will be assigned the same GUID.

Use case: You’ve imaged 10 machines with an installed unattended access client and a particular session identifier. All 10 machines will attempt to call back using the same session identifier. To remedy the situation:

  • Add UpdateClientSessionGuid.exe to your toolbox and join an access session with the first machine that calls back using the duplicate session id
  • Run UpdateClientSessionGuid by right-clicking on the exe in your toolbox and selecting “Run Tool Elevated”. The machine should now call back using a different session identifier, and you will now be joined to the second machine using the duplicate session identifier
  • Run UpdateClientSessionGuid on the second machine, and so on

This exe was developed using PowerShell 4.0 and targets .NET Framework 4.0.

Update: Attached restartAccessClientService.zip, which contains an exe that searches for installed unattended access clients and restarts each client service.

Disclaimer: This script was written by our support team (and in some cases in conjunction with our forum community) in response to customer requests. Scripts are meant to be quick workarounds or immediate solutions to problems. Scripts are not supported under our normal terms of service, as these scripts are outside typical Q/A or development guidelines. Questions for scripts should be addressed in its respective forum post. Suggestions for improvements (enhancements or defects) should also be queued in the post for consideration.

Edited by user Thursday, November 5, 2015 1:52:06 PM(UTC)  | Reason: Added attachment, updated description

File Attachment(s):
UpdateClientSessionGuid.zip (127kb) downloaded 145 time(s).
restartAccessClientService.zip (127kb) downloaded 104 time(s).
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.