HomeSection_sub_breakBlogsSection_sub_breakTechnical Blog
Icon_blog_forum_small How to...automate the install of Remote Support agent (aka 'host')
Icon_person
Mike Suding
Icon_time
09/25/2011 at 11:48
Icon_post
3 comments

Currently there are 2 ways to automate the installation of the Remote Support agent (aka host or endpoint). Both require that you are using an Active Directory domain. Sorry, it won’t work on a workgroup.
Note: Currently, as of September 2011, converting the exe to an MSI and pushing out via a GPO is not supported. We are planning to address this in a future version. Please use one of these methods instead.

You can use either method or both in combination.

Method #1 uses a utility I wrote called “Push-install”. This method is immediate but the computers must be powered on and connected when you do it. It will work if a user is logged on or not logged on.

Method #2 uses a program I named “RunAs-special.exe” in the logon script which allows installation when any user logs on. This may be helpful if some computers aren’t currently connected or powered on. Example: traveling laptop users or conference rooms. You can specify that the installation is skipped if it’s already installed (ie a current file exists). It will install even if the user is not an admin level user.
Note: I improved this program in February 2012 by storing the password in an encrypted string in a config file instead of specifying it as a parameter where it could be read by a clever person.

It is important to know that this user account should only be in the local “Administrators” group (not “Domain admins” group; see other blog entry for info)

Click here to see the video of method #1

Click here to download Push-install.exe

Click here to see video of method #2
Click here to download RunAs-special.exe
To see the instructions, start this program without any parameters.
Here is an example of the parameters:
script name: RunAs-special.exe
parameters: \\2008R2\share1\g2mg-COL-IT.exe /silent /u:wowie\adminMike /skip-if-present:%programs%\Citrix\GoToAssist Express Customer\309\g2ax_service.exe

I hope you like them!

Add a Comment
1 post
Joined: 09/11/26
Empty_star Empty_star Empty_star Empty_star
Icon_time 09/28/2011 at 12:31 [Edit Comment]

Hey Mike,

I tried the Push Install app (after watching the video) but got a weird error. The log stops logging when it gens the error. Here is the log file data:

Test connection to port 445 on csnc-frontdesk
Good: connected to port 445 on csnc-frontdesk
Check each computer to see if service is already installed
Now working on csnc-frontdesk
Run the command c:\temp\g2mg_rs_installer_1csnc_office.exe on each target PC
Result of copy from C:\PushInstall\g2mg_rs_installer_1csnc_office.exe to \\csnc-frontdesk\c$\temp\ = 1 (1=good)

Here is the error at that point (biggo grey window):

Error: Push-install

3052:unitialized variable, undefinded variable, or unquoted string

On line 267 of C:\SpiderOa…\winbatch\push-install.wbt

What is the reference to the “C:\spider*” dir?

Marc Whitley

12 posts
Joined: 04/11/17
Empty_star Empty_star Empty_star Empty_star
Icon_time 10/10/2011 at 10:36 [Edit Comment]

I sent an email directly to Marc but for other readers…The SpiderOak reference is just the folder i put my source code in. SpiderOak is how I sync my files between my laptop and desktop PC.
I don’t have enough info to troubleshoot this problem from this comment but I have asked for the detailed line that shows up in the error message.
Thanks

3 posts
Joined: 12/11/30
Empty_star Empty_star Empty_star Empty_star
Icon_time 01/10/2012 at 12:07 [Edit Comment]

Apparently you left some rererences to to spideroak in there since i got a similar error. I tried to insert a screenshot in this comment but couldnt get the attachment insert function to work. I sent and email to support@gotomanage.com with it attached instead. Please get this working because i need to push this out.