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
- Anon5143615 years agoActive Contributor
Sorry mistake in the code in last post;
(x86) not (86) for windows 64
AVG 2011 FULL SCAN - WINDOWS 64Bit
cd\
cd "Program Files (x86)\AVG\AVG10"
avgscana.exe /comp=ON /boot=ON /proc=ON /reg=ON /heur=ON /pup=ON /ads=ON /report="c:\mt\rsfiles\avgrep.txt" /trash=ON
exit______________________________________________
AVG 2011 UPDATE - WINDOWS 64Bit
cd\
cd "Program Files (x86)\AVG\AVG10"
avgmfapx.exe - Anon5143615 years agoActive Contributor
AVG 2011 - has a history log that helps to check past scans for virus infections. This log also displays raw data for auto updates.
if there is a virus not being removed or updates are not working, this log helps to detect.
WINDOWS 32bit
CD\
CD "Documents and Settings\All Users\Application Data\AVG10\log"
type history.xml_________________________________________
WINDOWS 64bit:
CD\
CD "C:\ProgramData\AVG10\log"
type history.xml - Anon5143615 years agoActive Contributor
CREATE A RESTORE POINT ON ANY WINDOWS:
THIS IS A VBS SCRIPT NOT A BAT! So change the text file from .txt to .vbs
If GetOS = "Windows XP" Then
CreateSRP
End IfIf GetOS = "Windows Vista" Or GetOS = "Windows 7" Then
If WScript.Arguments.length =0 Then
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "wscript.exe", """" & _
WScript.ScriptFullName & """" & " uac","", "runas", 1
Else
CreateSRP
End If
End IfSub CreateSRP
Set SRP = getobject("winmgmts:\\.\root\default:Systemrestore")
sDesc = "Manual Restore Point"
If Trim(sDesc) <> "" Then
sOut = SRP.createrestorepoint (sDesc, 0, 100)
If sOut <> 0 Then
WScript.echo "Error " & sOut & _
": Unable to create Restore Point."
End If
End If
End SubFunction GetOS
Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
".\root\cimv2")
Set colOS = objWMI.ExecQuery("Select * from Win32_OperatingSystem")
For Each objOS in colOS
If instr(objOS.Caption, "Windows 7") Then
GetOS = "Windows 7"
ElseIf instr(objOS.Caption, "Vista") Then
GetOS = "Windows Vista"
elseIf instr(objOS.Caption, "Windows XP") Then
GetOS = "Windows XP"
End If
Next
End Function - Anon5143615 years agoActive Contributor
AVG 2011 - UPDATE (32Bit windows)
cd\
cd "Program Files\AVG\AVG10"
avgmfapx.exe__________________________________________________________
AVG 2011 - UPDATE (64Bit windows)
cd\
cd "Program Files (86)\AVG\AVG10"
avgmfapx.exe__________________________________________________________
AVG 2011 FULL SYSTEM SCAN (WINDOWS 32bit)
cd\
cd "Program Files\AVG\AVG10"
avgscanx.exe /comp /ext=* /reg /boot /proc /macrow /pup /arc /ads /trash /report="c:\AVGREPORT.txt"__________________________________________________________
AVG 2001 FULL SYSTEM SCAN (WINDOWS 64bit)
cd\
cd "Program Files (86)\AVG\AVG10"
avgscanx.exe /comp /ext=* /reg /boot /proc /macrow /pup /arc /ads /trash /report="c:\mt\rsfiles\AVGREPORT.txt" - Anon5143615 years agoActive Contributor
A handy quick scan MALWARE scanner command line:
cd\
c:\a2cmd /u
c:\a2cmd /deep m /t /c /a /log=c:\mt\a2cmd\logs /dYou can Download A2 Squared and then Copy the following files from program files to c:\
The only files you need to copy from program files folder is:
a2cmd.exe
a2update.dll
engine.dllThe rest is created when updates and scanning is done.
Further switches can be found from a2 squared website.
- Anon5143615 years agoActive Contributor
Hi guys,
AVG 2011 with switches I use when installing via ONE2MANY.
Program downloaded: avg_free_x86_all_2011_1120a3152.exe
Switches: /AppMode=setup /UILevel=Silent /Selectedlanguage=1033 /InstallToolbar=0 /ChangeBrowserSearchProvider=0 /InstallSidebar=0 /DisableScan /KillProcessIfNeeded
You can alter your own switches by looking up the PDF document (page 241) form here:
Some hinderences that stop this download and install from happening are:
1. AVAST or other virus software installed. If older versiona of AVG are installed the above switches will autoboot and install on reboot without user intervention.
2. UAC turned in under users on Vista and windows 7.
This will mean logging into the dash board to view installed programs which is time consuming and a pain.... OInstead I run this script to view installed programs from the script log which is much quicker.
regedit /e c:\regexport.txt "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall"
find "DisplayName" c:\regexport.txt >c:\regprogs.txt
type c:\regprogs.txt
del c:\regexport.txt
del c:\regprogs.txt
exit - AndrewBucklin15 years agoActive Contributor
Found a pretty sweet program that can be run via command line to download and install Windows Updates. The Free Version does just that but the Pro version gives you a lot more control if you want to match certain REGEX expressions, auto-accept EULAs, etc.
You can even use the free version for unlimited commercial use. Sweet!
- Anon5143615 years agoActive ContributorHi 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
- AndrewBucklin15 years agoActive Contributor
I am too wondering how to automate Windows Updates with One2Many... Any ideas?
- KevinA15 years agoRetired GoTo Contributor
@iDevelop Thanks! I'll send you a LogMeIn collared shirt for your contribution (and Email you privately for your shipping address :smileyhappy:) 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 Base, Contact Support or Tweet us.