The GoTo Community is currently experiencing some technical issues affecting new posts and comments. 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
- epad7 years agoActive Contributor
Little late for ddddddd, but maybe someoen else can use this.
This assumes all clients are 64 bit OS & LogMeIn is installed on the C Drive.
Will work with Win7/8.1/10You will need to know the admin credentials for the domain or local admin for the PC, so unless all 100 PCs are within 1 domain, you'll need to run this a few times, once for each client domain. Once for each stand alone workstation. The reboot command (shutdown /r) isn't included in this script so you can deploy anytime. You should reboot when you can.
The script will hang in the One2Many screen, so you'll need to manually cancel it. LMI isn't there anymore to notify it's completed the task :)
This should kill all the files/folders in Win7/8.1/10. Will uninstall LMI from server 2008R2 and above.
2K8 R2 and above, you'll need to Add/Remove some of the LMI client items, but workstations are done!(Icons will show in the start menu/desktop/taskbar (where applicable) , but if you click on them, they won't function)
I created a file called "LMI-uninstall.bat" Copy/paste this into the file.
------------------ copy below -----------------
c:
cd\
cd "c:\program files (x86)\LogMeIn\x64"
logmein uninstall -deleteall
net stop lmiguardiansvc
taskkill /f /im lmiguardian.exe
taskkill /f /im lmiguardiansvc.exe
taskkill /f /im lmiguardian.exe
taskkill /f /im lmiignition.exe
cd "c:\program files (x86)\LogMeIn\"
attrib -s -h -r /s *.*
cd "c:\program files (x86)\"
rmdir /s /q logmein
rmdir /s /q "logmein ignition"
rmdir /s/q "logmein rescue avi codec"
rmdir /s/q "logmein rescue technician console"end
- pepperhope7 years agoNew Member
Nice article. Thanks for sharing it.
- achilcott8 years agoNew Contributor
Thank You.
I have two scripts to contribute:
checkUpdates.ps1
<https://gist.github.com/adamchilcott/f19b8cdb0bcf39a7b637ed0fe436c6a6>
checkKaspersky.ps1
<https://gist.github.com/adamchilcott/308b359b4af91a9d0ece2f6a3c915bea>
- adabala5588 years agoNew Member
I am looking for assistane for the following Task, Thank in advance.
We have to install a new software onto client machines but prior to that current software version need to be uninstalled and also delete a folder from root C:\
I have an idea that this can be done via One2Many tool, Could some one tell me or give me an example how to do this.
kind regards,
Devi
- MateNavay8 years agoGoTo Contributor
https://github.com/knix15/LogMeIn-One2Many-Community-Scripts/
Scripts can be found here as well for better future organization.
- ddddddddddd8 years agoActive Contributor
ENDING MY SUBSCRIPTIN SOON, WOULD LIKE AN AUTO UNINSTALL SCRIPT TO REMOVE LOGMEIN CLIENT SOFTWARE, PLEASE
- ddddddddddd9 years agoActive Contributor
Thanks for the advice, but I was still looking for a sample script to incorporate the command-line-parameters.
I understand what you imply, but my issue is that these message boards have large gaping holes of info and no definitive step by step, like if you aren't a programmer, developer or some sort of genius to figure things out, it's all a hack.
Therefore, if anyone can, PLEASE as requested, can ANYONE provide a me a sample script with ANY application to use as an example so I can attempt to utilize the features of this feature of LMI Central?
- j_helland9 years agoActive Contributor
Just a bit of advice here...........don't ever count on getting a real time solution from a message board.
Additionally, you could have solved this quickly yourself by going to https://www.piriform.com/docs/ccleaner/advanced-usage/command-line-parameters
You'll find a DOS command to run a Ccleaner update on that page. No executable needed.
You'll feel a lot more confident if you find these solutions yourself in the future. Google is your best friend when you don't have others in your department to rely on.
Lj
- ddddddddddd9 years agoActive Contributor
I've tried to understand these scripts, and have difficulty, and given the sparse support, I'm hoping anyone can assist in a simple request.
All I'd like is a basic template to install (update) and existing application.
Real easy, but I'm kind of stumped.
Sooner is better, as it's security related (I need to push the latest updated program Ccleaner.exe) that was discovered to have a vulnerability.
So, all PC's are x64, how do I do this, simple, easy, push to all end users?
(actual script, where the file resides to piush, and step by step)
This will be hwlpful for other tasks also in the future, much appreciate it.
- j_helland9 years agoActive Contributor
You certainly can! The syntax for that would be:
cscript filename.vbs
Just put that into your command with the actual filename. Do you have a vbs script that works?