cancel
Showing results for 
Search instead for 
Did you mean: 
KevinA
Retired 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.
 
 
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 Cachedelete and restore the cache folder associated with Microsoft System File Checker for the 
  appropriate version of Windows.
Reboot- reboot the remote device(s) with a end user notification for the appropriate version of Windows.
Shut downshutdown the remote device(s) immediately for the appropriate version of Windows.
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 UpdateUpdates 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 8/21/19 by GlennD)
Tags (1)
132 REPLIES 132
englanddg
New Contributor

This is great, and it worked fine on my clients...however, it does require user interaction.  Something I'd rather avoid.

 

Considering the way Logmein is going, automatic update and install for the LMI client really should be a feature, or at least a job that can be done without user interaction.

 

Am I missing something?

 

joelasaro
Active Contributor

Englanddg -

What user interaction did you run into? For me it was pretty seamless. The /s with the raupdate.exe command should run it silently.

I have been having trouble getting the latest update that just came out to install. No errors just doesn't seem to be available for all my nodes yet. But I'll need to test more to be sure of what the issue is and it did work for a couple of machines so far.
englanddg
New Contributor

Well, the first two client tests it prompted me (but I was also remoted into the machine to see the desktop, so maybe that's it)...

I may have spoken too soon, as when I logged into other machines after pushing it out to a larger group (a few dozen machines) AFTER the job finished, I didn't see any interaction prompts.

I may have just applied it incorrectly, so I'll keep playing with it. If I find something (including me being silly) I'll post details, until then, just disregard my post.
englanddg
New Contributor

Ok, I went back and checked a bunch of clients where I was NOT logged in with an active profile through Logmein (unlike the tests) after running the job, and it seems to have worked.  I didn't audit the entire network, but I'll say, THANKS for the script.  I think this will do EXACTLY what I wanted!

Colorado_Al
Active Contributor

Can anyone suggest a way to use one2many to silently uninstall LogMeIn?

joelasaro
Active Contributor

Lol.  It really shouldn't be that tough to do the uninstall, though I confess I haven't tried it.  Basically, you would write a  batch file to do the unistall.  I would probably try an msiexec unistall command or maybe wmic.  The trick I think would jut be to use One2Many to write this as a .com file and then use the start command to kick it off like the upgrade script previously discussed in this thread.

 

Colorado_Al
Active Contributor

Thanks.

I was thinking msiexec unistall command too, but can't find the registry string.

 

I tried a bat file like this:

cd "C:\Program Files (x86)\LogMeIn\x64\"

logmein uninstall

 

It removes it from your LMI Central account, and on the PC it does not auto run, but the installer is still resident in "Programs and Features" and the LogMeIn service still runs.

 

 

Colorado_Al
Active Contributor

Looking to see if I can use wmic. Will report back

Colorado_Al
Active 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.

froggydetail
New 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?