The GoTo Community is currently experiencing some technical issues affecting new posts and comments. You may need to reload the page you are on before you can post a comment. 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
- Gavin_Jones15 years agoActive Contributor
Hello Workday,
I always use cscript foobar.vbs on the command line.
Although I prefer to write .cmd as I'm not a VB person.
- Workday15 years agoVisitor
I am having a difficult time getting our VB scripts to work with One2Many. What particular method should I be using for them?
- Gavin_Jones15 years agoActive Contributor
This is a quick one-liner that validates that Steady State is running on the target PC.
tasklist | find /I "SCTSVC.EXE" > NULL
An exit code of 0 is expected if the process SCTSVC.EXE is found in the process list, signifying that Steady State is loaded and active.
This can be used with any command-line program, as long as you know what the exit code is for success (usually 0).
This type of quick task is particularly useful for gauging the progress of jobs that may spread over large time periods.
For instance testing to see if a large archive has finished transferring by running an archive 'list' process on the archive file and re-directing the ouput to NULL, but checking the exit code.
- Anon5143615 years agoActive Contributor
if you simply open a log file on the client computer via a "bat script" it will recard all text in that log into logmein log on completion. You can then download the script log from ONE2MANY interface reviewing all logs.
EG: c:\program files\AVG\AVG10\history.xml
It will return the text information into the log file when script is finished. This file will show all avg updates and scan history findings summery.
Hope this helps.
- Mark_INGG15 years agoVisitor
Does anyone have a script that would run on a remote client and pull logs back?
- scottay15 years agoNew Contributor
For anyone that needs it, I got MSE to work with a batch file with this:
"%ProgramFiles%\Microsoft Security Essentials\MpCmdRun.exe" -scan -1
However, the only thing to watch out for is the path of MpCmdRun.exe... One computer I have it on is as above, but another is ...\Microsoft Security Client\Antimalware\... Double check before trying to run it or it will fail.
Scott
- scottay15 years agoNew Contributor
I'd like to second the request for a MSE and Malwarebytes definition updates and scans... Is this possible?
Thanks!
Scott
- brianperry15 years agoVisitor
anyone know how to kill trend micro in a script, need to disable so i can install an msi package then enable
- mattyb15 years agoActive Contributor
Here is a small script I use to clear out the junk files (temp, internet etc) off all local profiles.
IF "%OS%"=="" GOTO WIN9X@REM - FIND "DOCUMENTS AND SETTINGS" FOLDER:%SYSTEMDRIVE%CD %USERPROFILE%\..FOR /D %%F IN (*.*) DO DEL /F/S/Q "%%F\LOCAL SETTINGS\TEMP\*.*"FOR /D %%F IN (*.*) DO DEL /F/S/Q "%%F\LOCAL SETTINGS\TEMPORARY INTERNET FILES\*.*"FOR /D %%F IN (*.*) DO DEL /F/S/Q "%%F\COOKIES\*.*"DEL /F/S/Q %WINDIR%\TEMP\*.*DEL /F/S/Q %WINDIR%\*.TMPGOTO END:WIN9XREM - WIN9X systems are currently not supported.:ENDTakes a while when first run, but daily it's fantastic. - Anon13422415 years agoVisitor
Does anyone have a script for changing the passwords of accounts on servers with one2many. The script will need to make the domain name a detectable variable and the usernames are all the same. It would be nice if we could create accounts too.