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
- dwalters13 years agoVisitor
Anyone have a script for uninstalling tightvnc?
Sincere thanks
- seamanjeff13 years agoNew Contributor
Is there amy way to slam in a password change without the password appearing in the log? I just had to change all my administrator passwords on short notice but now the results of the command line "net user" are in the log files.
- Atom8613 years agoVisitor
Code I scraped together that will:
1 dertermin OS2 Update MSE
3 Full Scan with MSE
File: MSE-Update-Scan-Vista-8.bat
rem - MSE: Update and scan system from CMD as a background process. @ECHO OFF CLS ver|find "Windows XP" > NUL if errorlevel 1 goto 2K ECHO Windows XP Detected. goto END :2K ver|find "Windows 2000" >NUL if errorlevel 1 goto 2k3 ECHO Windows 2000 Detected. goto END :2K3 ver|find "Version 5.2" >NUL if errorlevel 1 goto WinVista ECHO Windows 2003 Detected. :WinVista ver|find "Version 6.0" >NUL if errorlevel 1 goto Win7 ECHO Windows Vista Detected. Echo Updating Microsoft Security Essentials Signatures "%programfiles%\Microsoft Security Client\mpcmdrun.exe" -SignatureUpdate Echo Run Full Scan: "%programfiles%\Microsoft Security Client\mpcmdrun.exe" -scan -scantype 2 :Win7 ver|find "Version 6.1" >NUL if errorlevel 1 goto Win8 ECHO Windows 7 Detected. Echo Updating Microsoft Security Essentials Signatures "%programfiles%\Microsoft Security Client\mpcmdrun.exe" -SignatureUpdate Echo Run Full Scan: "%programfiles%\Microsoft Security Client\mpcmdrun.exe" -scan -scantype 2 :Win8 ver|find "Version 6.2" >NUL if errorlevel 1 goto ERR ECHO Windows 8 Detected. Echo Updating Microsoft Security Essentials Signatures "%programfiles%\Windows Defender\MpCmdRun.exe" -SignatureUpdate Echo Run Full Scan: "%programfiles%\Windows Defender\MpCmdRun.exe" -Scan -ScanType 2 goto END :END ECHO.
- slewis197213 years agoNew Member
Hi
Has anyone got a spiceworks script that I can pump put via this method?
Thanks in advance.
- that_ITguy71413 years agoNew Member
I am looking for a script to run antivirus when a malware/virus infection is found. Also, would like the script to have a time feature, so I can have it run when clients are not in the office, like between 10-12pm CST.
Also can anyone point me in the direction of a how to guide on script writing? I am fresh out of college and still learning the LogMeIn system. - LouieLouI13 years agoNew Member
Here's a handy batch file for MySQL Databases (selects, updates, etc):
rem - Note SQL Statements that generate files should have their outfile deleted first! set sqlcommand="Your SQL Statement Here" rem - Nav to your MySQL / MariaDB Instance, edit path to your preference: cd d:\ cd "d:\mariadb 5.5\bin\" rem - Pipe your SQL command into a txt file: echo %sqlcommand% > sql.txt rem Execute your SQL, provide username and password as arguments to the batch file: mysql --user=%1 --password=%2 --database="database name" < sql.txt
Might be messy, but sure as heck effective!
Added Bonusl when setting up the task, specify the text file (if one is created by your statement) as the log file in LMI, and now you can view the resulting file in LMI. (Feature Suggestion: email the log file along with the task summary emails!)
Also in hindsight, the database name could be another batch file argument!
- ColWhackaMole13 years agoNew Member
Does anyone have a script to uninstall unused programs? Also does anyone have any suggesstions on how to use One2Many to keep computers running fast without anything popping up or notifying users? Thanks all.
-ColWhackaMole
- timsmith734313 years agoVisitor
I saw your reply about pulling logs back. I'm very new to this and don't undertsant your application. If I had specific log files being generated on a client server and I wanted to have them copied back to me. How would you go about that? I know the folders where the files are generated. certain files are created daily with a date name, other files are generic.
Tim
- apgarza14 years agoNew Contributor
Did you ever get a reply to this? I still haven't gotten any reply's and haven't gotten any actual good info from the LOGMEIN Support staff. :(
I spent about 6 hours so far trying to figure out how to get a script to run with elevated permissions and I know all the supposed tricks with task scheduler and so forth, but none of them are a good option for me. There are other third party programs which can run these kind's of files automatically for us but I am really trying to use LogmeIn One2Many.
- apgarza14 years agoNew Contributor
I can't get a cleantemp.vbs file to work. It says it runs successfully but it actually doesn't do anything. Unless I run it myself on windows. Which then it prompts me to "OPEN" the file.