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.
How does it work? Simply browse the .txt files below, save as a .BAT file and head to your LogMeIn Central console. Then, navigate to the One2Many tab, and select "Run a batch file or executable." From there, simply upload the batch file and you're ready to go.
How can you help? We encourage you to share your own scripts and/or help review the scripts of others-- just "Kudo" your favorites or reply with your comments.
Use of these scripts is at your own risk so please test them on a small number of systems before deploying at scale. The scripts are provided “as is” without any warranty of any kind and LogMeIn disclaims any and all liability regarding any use of the scripts. Please see the following Terms and Conditions for more information.
Remember: The currently running One2Many script ends when either the host service stops or the script includes computer shutdown or reboot tasks.
Script Repository
Microsoft Updates
Windows Update Javascript- The following script will perform comprehensive Windows Updates (Windows and Microsoft updates) on remote computers. This java script must be run as a Custom Task within One2Many with cscript being the entry point, Command to execute to update and install in the Custom Task is:
cscript.exe "%LMI_PACKAGEROOT%\wu.js" /sa /i
/sa will find updates that are flagged to be automatically selected by Windows Update. This is critical to avoid installing all available updates for the computer as this may include over ten 500Mb language support files on Vista and Win7. /i is the command argument that instructs the script to download and install the updates found. Additional arguments are outlined within the source code of the JavaScript.
Both the script and the command to execute can be customized to suite your environment’s needs.
Security
Disable Firewall- disable the Microsoft Windows Firewall for the appropriate version of Windows.
Enable Firewall- enable the Microsoft Windows Firewall for the appropriate version of Windows.
Install AVI Convert- install the LogMeIn Rescue AVI Converter which converts LogMeIn Rescue .rcec
recordings to .avi, for the appropriate version of Windows.
Update AVG Virus Definitions: Updates your AVG (versions 8 and/or 9) virus definition files
Maintenance
Purge DLL Cache- delete and restore the cache folder associated with Microsoft System File Checker for the appropriate version of Windows.
Reboot- reboot the remote device(s) with an end-user notification for the appropriate version of Windows. Remember: When a host is restarted, it disconnects from Central and the currently running One2Many script stops. Since One2Many cannot continue script execution, rebooting a device should be the last step of your One2Many script as it ends the script.
Shut down-shut down the remote device(s) immediately for the appropriate version of Windows. Remember: When a host is shut down, it disconnects from Central and the currently running One2Many script stops. Since One2Many cannot continue script execution, shutting down a device should be the last step of your One2Many script as it ends the script.
Reset System Restore- reset (disable/enable) Microsoft System Restore for the appropriate version of
windows.
Turn Off System Restore- disable Microsoft System Restore for the appropriate version of windows.
Turn On System Restore- enable Microsoft System Restore for the appropriate version of windows.
Defrag- Defragments C volume
Spool Cleaner- Cleans print spooler (submitted by iDevelop)
LogMeIn Update- Updates host software with the latest version of LogMeIn.
Use of these scripts is at your own risk so please test them on a small number of systems before deploying at scale. The scripts are provided “as is” without any warranty of any kind and LogMeIn disclaims any and all liability regarding any use of the scripts. Please see the following Terms and Conditions for more information.
(edited and updated 2/23/23 by GlennD)
https://github.com/knix15/LogMeIn-One2Many-Community-Scripts/
Scripts can be found here as well for better future organization.
136 Replies
- Consultant6410 years agoRegular Contributor
Lisa_K8 Are we any closer to getting a dedicated topic heading/group for One2Many? There is a lot of useful informaion hidden in the re:One2Many Script Repository trees that would allow many to use all of the power tools included in Central.
Thanks, Dave
- Consultant6410 years agoRegular Contributor
try right clicking on the file then click properties and see if there is an Unblock option. Uncheckit.
- ITDEPT8710 years agoActive Contributor
Can anybody help with installing the lastest Java update? i have the .exe file downloaded but nothing im trying is working the program keeps failing out. Thank you.
- GeorgeK7810 years agoNew Contributor
Thanks Joe.
I have ran plenty of Powershell scripts from batch files, I even have a vb script I use for Powershell scripts in the task scheduler:
set arg = Wscript.Arguments command = "powershell.exe -nologo -command " & Wscript.Arguments.Item(0) set shell = CreateObject("WScript.Shell") shell.Run command,0
That works fine in Scheduler.. but not sure about the syntax in LMI. I guess I'll try it.
As for the user running the script. the LogMeIn service runs as LocalSystem, and the scripts that I typically run, are system related... as in, controlling a service if it meets certain conditions, etc ... so I'm not sure that this is really user dependent? (unless of course, I misunderstood what you were stating)
p.s: I completely agree with you regarding the developments on One2Many. I'm really not that impressed. I honestly think that having more functionality with One2Many would've been more important than having a whole Anti-Virus section, which, frankly, doesn't do a lot more than previously.
Cheers!
- joelasaro10 years agoActive Contributor
Yes, it is criminal that LMI hasn't added powershell. Frankly, I haven't seen any development improvements in One2Many. Makes you wonder what they are spending all the money from their constant price increases on!
I have ended up implementing most of my scripts in vbs or batch to keep it simple. I do feel like I have done a powershell script in the past through One2Many, but I can't find it now so maybe I didn't.
One thing to note is that the commands are going to run as the user account you give LMI Central to use on that computer. Are you testing on the same computer and using the same account? Also, I would google for running powershell from the commandline or from a batch file. It looks like there might be some helpful resources on Stackoverflow for that.
- GeorgeK7810 years agoNew Contributor
Hi all,
I don't know if I'm missing something glaringly obvious with the One2Many functionality, but, in my searches in the forums, I found exactly one post about running Powershell scripts through One2Many.
With PS being such a powerful scripting language, I'm surprised that we're still sticking with batch and vb scripts to perform certain tasks.
1- I would think that LMI should include running native Powershell scripts directly from the task setup pages within Central.
2- Have some guidance as to how to easily trigger and run a Powershell script on Windows.
So far, I have been unsuccessful. Would anyone have a specific way that worked for them for running a PS script? (including the specific command lines)
I have tried certain ways of triggering it, using a custom command, with something like this:
"C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe" -ExecutionPolicy RemoteSigned "C:\Scripts\ControlCPU_wuapp.ps1" where the Powershell script is in that location (c:\scripts).. but I keep getting run failures, even though the script runs just fine when ran on the server workstation itself.... so, looking for guidance if anyone has any?
Thanks all!
- Lisa_K810 years agoRetired GoTo ContributorHello, I totally agree and have included adding a separate Script Repository group to the list of updates to the community. Coming soon! Great idea thank you!
- Consultant6410 years agoRegular Contributor
Lisa_K8 We sure could use a section entirely for One2Many Scripts where its not one long post like the current one so it can be prganized per subject e.g. Updates, Batch, Reboot, etc. The current one is too long and a reply to a reply near the top ends up many pages down the list so they are not displayed in a tree view.
- Consultant6410 years agoRegular Contributor
Click on the Community Home link and then click Central and you can see the Repository. It is not laid out very well as questions and solutions are not viewable as a tree. Scattered.
- ao21210 years agoNew Contributor
Hi I am reading this thread but don't see a "central" repository for where I can find ALL the scripts except for the ones mentioned in the posts here. Is there one central location to find One2Many scripts?