Script for D7ii <-> Screenconnect Unattended Client

These forums are retired and read-only.
Forum rules
These forums are retired and read-only.

Script for D7ii <-> Screenconnect Unattended Client

Postby jhuggins » Sun Feb 15, 2015 5:48 pm

Anytime we repair a computer at my shop, we install our branded screenconnect client on it.
Makes life easier for ongoing support and such.

Getting your minions to correctly fillout a session and install it can be.. imaginative.
Heck, I don't like to log into the screenconnect server from an infected computer.

This VBS script has helped us out at my shop scads.

Code: Select all
Dim strComputerName, hostname, groupname
Dim phonenum, contract, intCaseSensitive
Set wshShell = WScript.CreateObject( "WScript.Shell" )
intCaseSensitive = 1
strComputerName = wshShell.ExpandEnvironmentStrings( "%COMPUTERNAME%" )

hostname = InputBox("Computer name?","Set Hostname",strComputerName)

phonenum = InputBox("Phone Number?","","Leave Blank if unknown")

groupname = InputBox("Business Name?","Set Group")

contract = InputBox("Under Contract?","yes or no")

hostname = Replace(hostname, " ", "%20", 1, -1, intCaseSensitive)
phonenum = Replace(phonenum, " ", "%20", 1, -1, intCaseSensitive)
groupname = Replace(groupname, " ", "%20", 1, -1, intCaseSensitive)


wshShell.Run "http://yourscreenconnectsite:8040/Bin/Elsinore.ScreenConnect.ClientSetup.exe?h=yourscreenconnectsite&p=8041&k=BgIAAACkAABSU0ExAAgAAAEAAQAhHBk82cqbJEgZSAAApToJwxWyCFc36%2FMsrtL2Swmkuwo%2Bk5JobHAGFKYtzljGivv8vPP4SVf%2FOvmM%2BQpYKLNSpSUqxCXzVDNds%2BocB1Xr9M8%2B8HS9C200HojV6VqquVlrdTz9V1VfSCkiPZB2XigBN%2BoAMB98PvGMWfhSTBCVtXHMSsAJ3YPOezz1BkKs6bHRsu3m1wHZiip3%2B4uZ%2BTEbJZGC8Q9gaI7tdNP3p9oQaEn9JHG4dnPVLyC1GlFrQSfSztKTARyjzjI1%2F%2FOqqDMRWnkcQ8PPM0iYH%2FIXcHevp0ntFZggvVdzMWMFlFM0YIyqtZdCdDZiPlnf9qIkLzuo&e=Access&y=Guest&t=" & hostname & "%20" & phonenum & "&c=" & groupname & "&c=" & contract

wshShell.Quit


I have this as a custom app in D7ii.

We have the first C variable filled with the organization the computer belongs to (if applicable) and the second C variable filled with Yes/No are they under contract.

It'll pop 4 questions:
1. Computer Name (pre-filled with the computer's netbios name)
2. Phone number of the client
3. Organization/Business Name
4. Under Contract?

Works fairly well for us, happy to help mod it if someone needs some advice.
jhuggins
 
Posts: 4
Joined: Sat Dec 13, 2014 3:27 pm

Re: Script for D7ii <-> Screenconnect Unattended Client

Postby Xander » Mon Feb 16, 2015 1:37 pm

Got an adaptation of that to create and connect to an *attended* session?
User avatar
Xander
 
Posts: 662
Joined: Fri Feb 08, 2013 6:08 pm
Location: Near Niagara Falls

Re: Script for D7ii <-> Screenconnect Unattended Client

Postby vmhs » Mon Feb 16, 2015 6:08 pm

You can in the latest version of screenconnect (one of the addons for it iirc), expose a "build installer" from the unauthenticated part of the page.

This allows you to build an installer on clients machine without logging in to the technican side.

simple, clean and easy
vmhs
 
Posts: 180
Joined: Sat Jun 21, 2014 5:05 am

Re: Script for D7ii <-> Screenconnect Unattended Client

Postby jhuggins » Mon Feb 16, 2015 6:23 pm

Screenconnect uses 3 session types:
Support (temporary Attended sessions)
Meet (never use this myself ,don't know anyone who does)
Access (Unattended)

The long-term stuff should all be done as "Access", also known as an unattended install since you can remote into it when it is unattended.
The attended stuff usually requires an active person interacting with the computer to get5 you started.

So, are we using the same language?
Which major grouping would you be talking about? This script is configured for the major grouping "Access".

P.S.
This script is, imho, superior to the exposed "Build Installer" option.
Build Installer does not fill in any fields whatsoever. Do you know how many people call their computer "Owner-PC"?
Too many
Edit: I swear my fingers betray me and type the wrong thing - I meant the script is configured for the major grouping "Access" - my bad.
jhuggins
 
Posts: 4
Joined: Sat Dec 13, 2014 3:27 pm

Re: Script for D7ii <-> Screenconnect Unattended Client

Postby vmhs » Mon Feb 16, 2015 10:59 pm

I see what you mean wrt the support/access paradigm

We generally have all customers we deal with agree to a long term "access" solution.

If I have a customer that I don't get that agreement with, we just use the "access" solution for purposes of keeping session open, and "end" it afterwards.

I tend not to use the "support" side, unless i have a client with brains enough to run the program itself which in my experience is painful.

To each their own. I will eval what you are doing, and see if it fits for me. :)

Aj.
vmhs
 
Posts: 180
Joined: Sat Jun 21, 2014 5:05 am

Re: Script for D7ii <-> Screenconnect Unattended Client

Postby jhuggins » Tue Feb 17, 2015 11:56 am

Edit:
I'm an idiot that can't type - fixed my above post.
jhuggins
 
Posts: 4
Joined: Sat Dec 13, 2014 3:27 pm


Return to d7 Usage and Tips