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
Replies have been turned off for this discussion
- OlwsFactory11 years agoNew Member
Remote Command Type Task to unnistall.
cd c:\program files\logmein\x86
logmein uninstall
shutdown -r
- atilley11 years agoNew Contributor
Thanks, I appreciate your input! This is kind of what I expected, I've noticed something like this in the past when updating the Logmein client.
- joelasaro11 years agoActive Contributor
Thanks, but to be fair I just reposted what I had scrapped from other places like spiceworks and this random LMI page: /html/assets/UpdateLogMeIn.txt
Now to your question, this process of updating from the command line (what the batch file is doing) has always been a bit inconsistent for me. It definitely doesn't seem to work as consistently as doing the update form the GUI of the LMI client. That said, I just ran the script (I haven't run it in a while as I haven't had a real need) and it is definitely updating at least some LMI endpoints to the latest 5220. I think you may have to just be patient with it. I vaguely recall a support ticket I opened once about this where I was told something to the effect that LMI pushes the latest updates out incrementally and not to all instances at once.
Hope that helps. Sure which LMI would just build what I feel is very basic functionality for an RMM tool into the package and we could skip this stuff.
- atilley11 years agoNew ContributorAlso, I believe credit for this script is due to joelasaro, from this very thread :).
- atilley11 years agoNew Contributor
Hi all, I've been using the following script to update the Logmein client via One2Many.
@echo off
cd %TEMP%
if %PROCESSOR_ARCHITECTURE% equ AMD64 goto amd64
echo cd "%ProgramFiles%\logmein\x86\update" > lmiupdate.cmd
goto x86done
:amd64
echo cd "%ProgramFiles(x86)%\logmein\x64\update" > lmiupdate.cmd
:x86done
echo raupdate.exe /s >> lmiupdate.cmd
echo exit >> lmiupdate.cmd
start lmiupdate.cmdThis was updating in Logmein client using a version prior to 5208 up to version 5208. Now version 5220 is available, but the script is not updating clients using 5208 to 5220. However, client's using a version before 5208 are being updated to 5220 using the script above. All that being said, any ideas why this might be occuring? Any input would be GREATLY appreciated!
- MannyMan11 years agoNew Member
Hi everyone,
I need to change the license keys of AVG business antivirus for all my users (about 120). We don't have a local or virtual domain and all are users are local admins. The best we have is LogMeIn :).
I'd like to create a script to update the licenses for our users. I'm not very script savvy so any information definitely helps.
THANKS
- joelasaro11 years agoActive Contributor
I haven't done this before, but that is an interesting idea. Scripting this looks like it would be pretty easy. I would recommend taking a look at this page (scrolll down) for some example of what you can do with the local security policy via commandline using the "net accounts" command.
http://www.thewindowsclub.com/customizing-the-password-policy-in-windows-7
I think this would just be running the following command directly via One2Many or making a batch file to do it:
net accounts /maxpwage:90
- froggydetail11 years agoNew Contributor
We don't have a local or virtual domain. Our users are all local admins. However, I'd like to push a script that will enforce a password change policy of every 90 days, they must reset their password to their local user account. Any advice or scripts you can share?
- Colorado_Al11 years agoActive Contributor
Looks like wmic is the way to go.
bat file looks like this:
wmic product where name='LogMeIn' call uninstall
Setup the task as "Run a batch file or executable" and no Optional parameters needed.
Make the plan and then run it with an account with admin privileges.
Of course it will look like the plan never completes since LogMeIn will not return a "completed" command, since it will then be uninstalled. However, if you check your computer list, it will be gone.
- Colorado_Al11 years agoActive Contributor
Looking to see if I can use wmic. Will report back