Jump to content
ST_Ty

GPO for LT agent install

Recommended Posts

@timwiser We tested your script on 10.5 and 11 with success (thanks for sharing it), we just moved to CWA v12 and I wondered if it will work with 12?

Share this post


Link to post
Share on other sites
39 minutes ago, Jmw66 said:

@timwiser We tested your script on 10.5 and 11 with success (thanks for sharing it), we just moved to CWA v12 and I wondered if it will work with 12?

@Jmw66

We have been using it with 12- the only issue (addressed in this last release) was computers going to location 1

Share this post


Link to post
Share on other sites

Our Firewall / port forwarding does not allow port 80...

 

so in version Version 1.8

line 94- included https

  CONST serverFQDN = "https://*************"      ' FQDN or IP of Automate central server with protocol 

 

line 260 changed:

from

 ' strDirectURL = "http://" & serverFQDN & "/Labtech/Deployment.aspx?Probe=1&installType=msi&MSILocation=" & strLocation

  to:

    strDirectURL = serverFQDN & "/Labtech/Deployment.aspx?Probe=1&installType=msi&MSILocation=" & strLocation

 

 

The registry check that the script does is reinstalling were it had set the server to httP;//

Share this post


Link to post
Share on other sites

@DarrenWhite99 thanks for your latest bat file using LTPoSH, I'm currently testing it on one of our test domains.  It seems to work, but I had a couple of questions. It's installing .NET 3, but I've successfully deployed LT without .NET3, don't know if the requirements have changed?  I've got a Scheduled Task running on creation and it's working, but it's in the foreground with a CMD window visible to the end user.  Have you found a way to have it running in the background when using the Scheduled Task option?

Thanks

Nick

Share this post


Link to post
Share on other sites

@timwiser your script has worked brilliantly for us, many thanks for the work that's gone into it.  Today I've combined with with @DarrenWhite99's approach and used it with a Scheduled Task that ran on creation.  This method has pushed out the agent to about 50 machines in a couple of hours.

Thanks again,

Nick

Share this post


Link to post
Share on other sites
On 11/28/2018 at 7:03 AM, ncdlloyd said:

@DarrenWhite99 thanks for your latest bat file using LTPoSH, I'm currently testing it on one of our test domains.  It seems to work, but I had a couple of questions. It's installing .NET 3, but I've successfully deployed LT without .NET3, don't know if the requirements have changed?  I've got a Scheduled Task running on creation and it's working, but it's in the foreground with a CMD window visible to the end user.  Have you found a way to have it running in the background when using the Scheduled Task option?

I have never had a problem with the execution being visible. I schedule the task to run as SYSTEM, "when the user is logged in" (SYSTEM is always logged in), with highest privileges, and I don't enable desktop interaction. That way no desktop user needs to be logged in and no credentials are needed.

Share this post


Link to post
Share on other sites

I wanted to second what @ncdlloyd said and say that combining @timwiser VBS script with @DarrenWhite99 idea of a scheduled task through GPO works perfectly.  One thing to look out for when configuring the VBS script is that the value for serverKey was not in the regkey discussed in the PDF setup doc.  The ServerPassword key ended up not having the correct value in it (I'm not sure if this is due to it being encrypted when it should not have been or vice versa).  I found my server password by just downloading a customized install MSI for any location and then just running it.  One of the first screens will have fields for server address, server password, and location ID with these already populated.  I copied the key from the field there and provided it to the VBS script and it worked like a charm.  Many thanks to all who helped as we have been struggling with agent deployment for some time now (we found that probe push and GPO software deployment were not reliable).

Share this post


Link to post
Share on other sites

@timwiser I can't seem to download the VBS script, it says it's no longer available. Would you mind sharing this with me as we are also running into issues with GPO deployment and would love to try your script/method.

Edited by sniderit

Share this post


Link to post
Share on other sites
On 5/3/2019 at 4:15 AM, timwiser said:

Sorry for this, I'll check the URL shortly.

 

Are you able to re-share your script? With all the positive responses from this thread I was excited to try it out but your link is still dead. Thanks!

Share this post


Link to post
Share on other sites

@timwiser I've been banging my head on this script for a little bit... it installs, but then like @rattrap17 says the server key doesn't work (I get a failed checkin and sleep combo for eternity).  Support says my server password is no good.  I tried @rattrap17's method of grabbing the password but now I get reports of: 

LTService  v190.161     - 8/14/2019 11:10:45 AM     - Error running SQLite command - SQL logic error or missing database
too many terms in compound SELECT:::
LTService  v190.161     - 8/14/2019 11:10:47 AM     - Send Info1LTSVC - Invalid Operation. Duplicate Key found. Key:i:::

Any help would be much appreciated.

 

Share this post


Link to post
Share on other sites
On 8/14/2019 at 1:43 PM, DarrenWhite99 said:

An alternative to the VBS - Uses the LabTech PowerShell Module (LTPoSh)
https://slack-files.com/T0SD04DSM-F8RA68F53-da5f31ba6a

Just set the server and locationid on lines 9/10.
The locationid can also be specified from the command line as a parameter.

I tried using this earlier and it didn't want to play nice... was able to debug that it couldn't for some reason reach out and grab the ps1 file hosted at the bitly link.  I was able to make a local copy of the file call it LabTech.psm1 and the script ran flawlessly.

 

Edited by RobM

Share this post


Link to post
Share on other sites

The heart of the call to LTPoSh is: 

try {(new-object Net.WebClient).DownloadString('http://bit.ly/LTPoSh') | iex} catch {(new-object Net.WebClient).DownloadString('%~dp0LabTech.psm1') | iex}; Get-Service @('LTSvcMon','LTService') -EA 0 | Select-Object -Property * | FL; Get-LTServiceInfo -EA 0; Reinstall-LTService -Server '%LTServerHostname%' -LocationID %LTLOCATIONID%

It will try http://bit.ly/LTPoSh first, and then look for LabTech.psm1 in the same folder as the batch file.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...