The GoTo Community is currently experiencing some technical issues affecting new posts and comments. We are actively working with our service provider and apologize for the frustration.
Forum Discussion
KevinA
16 years agoRetired GoTo Contributor
One2Many Script Repository
Welcome to the LogMeIn Central Script Repository!
What is it? A library of scripts to help you execute automated tasks and manage LogMeIn Pro² computers without having to access them manually. ...
- 8 years ago
https://github.com/knix15/LogMeIn-One2Many-Community-Scripts/
Scripts can be found here as well for better future organization.
carlcapone
9 years agoActive Contributor
Hi everyone,
I am kinda wondering if someone has successfully transfered files using a script instead of the file transfer/manager in LMI. If anyone is willing to share a working script, that would be awesome. Thank you.
P.S. I've posted on the other thread as well.
Beep-Beep
9 years agoActive Contributor
Scripts do not allow the ability to transfer files.
You'd need to issue commands to something in order to do the copy.
Examples of methods:
Initiating a VPN connection then transferring from a fileshare.
Initiating an FTP download (Something like this: FTP through PowerShell )
Using an already available file transfer utility like SCP.
You can use the custom package option (One2Many Task). It will download all files you upload to the task. If you use a PowerShell script, you can refer to the random directory LMI puts the files in through the variable $PSScriptRoot as the script will be in the same directory.
#Rudimentary example #Uninstall old products since they cause new installations to abort (Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match 'Awesome Program'}).Uninstall() #Start Install Start-Process -Wait msiexec -ArgumentList "/i $PSScriptRoot\AwesomeProgram.msi TRANSFORMS=$PSScriptRoot\AwesomeProgramTransform.mst" #Install dependent program Start-Process -Wait msiexec -ArgumentList "/i $PSScriptRoot\DependentProgram.msi" #Install second dependent program Start-Process -Wait msiexec -ArgumentList "/i $PSScriptRoot\AnotherDependentAwesomeProgram.msi" #License the program Copy-Item -Path $PSScriptRoot\AwesomeLicense.lic -Destination "C:\Program Files (x86)\AwesomeProgram\LicenseFile.lic" -Force