cancel
Showing results for 
Search instead for 
Did you mean: 
Retired LogMeIn 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. We'll take the top-rated ones from the Communtiy and add them to our repository below. 
 
What do you get? If you create a valid script and share it with the group, we'll send you a LogMeIn collared shirt as a token of our appreciation.
 
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 are at your own risk. 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.
Tags (1)
124 REPLIES
New Contributor

Re: One2Many Script Repository

Thanks for the scripts.  Do you have any recommendations for the best way to install Windows Updates using One2Many?  It would be great if they can be scheduled and the machine rebooted once they are complete.

Retired LogMeIn Contributor

Re: One2Many Script Repository

UPDATED 10/7/2011: Defrag and Update of AVG Virus Definitions.

 

New Contributor

Re: One2Many Script Repository

The two scripts you updated on the 7th, they're not there

Tags (1)
Retired LogMeIn Contributor

Re: One2Many Script Repository

dbzmaxx1- fixed. Thanks Smiley Wink

New Contributor

Re: One2Many Script Repository

Here's a little print spool cleaner (I call mine cleanspool.bat)

 

@echo off

echo Stopping print spooler

echo.

net stop spooler

echo deleting stuff... where?  In your System Root. Smiley Happy

echo.

del "%systemroot%\system32\spool\printers\*.shd"

del "%systemroot"\system32\spool\printers\*.spl"

echo Starting print spooler.

echo.

net start spooler

Highlighted
New Contributor

Opening a Website / picture on the target computer automatic

I have been using www.appdeploy.com for all my scripts.

They have the extensions for all latest software installs (Silent).

 

I like the idea of this forum it should help people start.

 

MY PROBLEM: if someone can help me

 

I have been using one2many for 300 users. I have tried to send a bat or vsb script to open a jpg picture when starting a service on the target machine. The jpg is our logo with instructions regarding us servicing the machine.
I created a Bat file with c:\mt\rsfiles\rs.jpg for it to open on target computer.
In dos it works but not via a bat through ONE2MANY.

I thought this must be to do with the silent feature suppressing opening boxes to the user.

So I tried a bat file pointing to a bat file on the target computer hard disk.
same with a bat file pointing to a vbs script. Still no opened picture.

I then made a website with the same displayed; www.milnetech.com.au/rs 

Can someone help me use variables in the command line to open a jpeg or a website on a target machine through ONE2MANY?

Looking forward to your help regarding this.

Retired LogMeIn Contributor

Re: Opening a Website / picture on the target computer automatic

@iDevelop Thanks! I'll send you a LogMeIn collared shirt for your contribution (and Email you privately for your shipping address Smiley Happy)   I'll also go ahead and add that script to our repository in the top-post.

 

@Anon  Thanks for pointing us toward that resource! Feel free to contribute what's worked for you on this thread. As for your other statement.. do any Central users have a script that could open a .JPEG file on a target machine through One2Many? (You may want to re-post as a seperate topic in our Central forums for better visibility).

Thanks,

 

Kevin
Community Relations Manager

Was your question answered?  Mark it as an Accepted Solution!
See a great post? Give it a Kudos!
Need more help? Search our Knowledge BaseContact Support or
Tweet us

Tags (1)
Active Contributor

Re: One2Many Script Repository

I am too wondering how to automate Windows Updates with One2Many... Any ideas?

Tags (1)
New Contributor

Re: One2Many Script Repository

Hi Andrew,
 

You might find this regarding windows update switches.

http://support.microsoft.com/kb/262841

 

Also multiple updates with only one reboot:

http://support.microsoft.com/kb/296861