I've got a few goodies that I thought I'd share seeing as nobody has posted to this topic in a while.
Important to note is that One2Many is MOST powerful in my opinion, when the "custom" task type is used. By using this type of task, you can copy files and run scripts in one step vs using one task to "deploy scripts" and another task to run batch files or executables.
Also important to note is that, using the "custom" task, there is only ONE LINE given to execute DOS commands. You CAN execute multiple DOS commands on one line by using the "&&" command to separate the commands.
For Example. . . this command would copy files that you've uploaded to a specified location(s) on the target computer.
copy filename.txt "c:\users\userABC\documents"&© picture.jpeg "c:\users\userABC\pictures"
______________________________________________________________
Sleep&Wake @ 6:00: Puts the computer to sleep @ 6:00pm and wakes the computer up @ 6:00am. I use this because some of my computers have usb devices attached which don't allow them to sleep.
Prerequisites: This script uses 2 different .xml files which I've exported from windows tasks in the task manager (windows7). I use the "custom" task, upload the xml files, then run this command in the "command to execute" field.
copy wakeat6.xml "c:\vrad software\scripts"&© sleepat6.xml "c:\vrad software\scripts"&&schtasks /create /tn Sleep_at_6 /xml "c:\vrad software\scripts\sleepat6.xml"&&schtasks /create /tn Wake_at_6 /xml "c:\vrad software\scripts\wakeat6.xml"
______________________________________________________________
Install SpiceWorks: Installs Spiceworks. I have about 500 LogMeIn clients in the cloud....so I need Spiceworks to manage my inventory. Spiceworks has an "agent" which reports intricate computer hardware and software details back to my central server. I can monitor the server and determine computer depreciation, OS upgrade status as well as trigger alerts if malicious software is installed, or if the computer is low on resources. Spiceworks is free of charge.
Prerequisites: You'll need to set up your own SpiceWorks server and your LMI clients will need to be able to talk to it's IP address and specific port (of your choosing). If you're on a LAN, there is a LANscan option available. After setup, you'll fill in the variables within the installer script to specify IP, Port and authentication key.
msiexec.exe /x "Spiceworks Agent.msi" ALLUSERS=1 /q /norestart&&msiexec.exe /i "spiceworks agent.msi" SPICEWORKS_SERVER="server/ip" SPICEWORKS_AUTH_KEY="unique_key" SPICEWORKS_PORT=port/q /noresta
______________________________________________________________
Check Download Speed: Checks the download speed/bandwidth on the target computer.
Prerequisites: Just paste the text below into a .vbs script called speedtest.vbs, upload the script into the "custom" task type, then run the command cmd /c cscript speedtest.vbs. After you run the task, check the log file in LMI, it should show you the speed in kilobytes.
Script: (Paste into notepad, save as speedtest.vbs)
strSource= "http://networking.us.uu.net/customer_support/pal/pal_4/newf1.zip"
strDest = "c:\newf1.zip"
StartTime = Timer
set HTTP = WScript.CreateObject("Microsoft.XMLHTTP")
HTTP.open "GET", strSource, False
Set filesys = CreateObject("Scripting.FileSystemObject")
set Stream = createobject("adodb.stream")
Const adTypeBinary = 1
Const adSaveCreateNotExist = 1
Const adSaveCreateOverWrite = 2
Stream.type = adTypeBinary
Stream.open
Stream.savetofile strDest, adSaveCreateOverWrite
EndTime = Timer
set Stream = nothing
set HTTP = nothing
filesys.DeleteFile "c:\newf1.zip"
TimeIt = 957/(EndTime - StartTime)
wscript.echo FormatNumber(TimeIt, 2) & " " & "KBps"
______________________________________________________________
Message to End User: This one is simple. It's a simple pop up window that appears in front of all other windows on the end user side. I don't know why LMI doesn't just build this functionality into LMI Central........probably because they're always on vacation. Every time I ask for some new functionality I get a polite message back from them "we'll consider your idea.........".
Prerequisites: There is a charactor limit in your message. Think Twitter. If you use too many characters the task will error and the end user won't see the message. This task type is the simple "remote command".
We have outages at which we need to alert our end (cloud) users quickly without calling all of them. This is our preferred method. Note, the message will disappear after 999 seconds. This is the longest timeout available in the DOS msg code (to my knowledge).
msg * /time:999 **ATTENTION**There was ~20 minute outage in which a piece of networking hardware failed. We were able to resurrect this and do not anticipate any further issues.
______________________________________________________________
I hope someone finds these helpful. I understand that these won't be helpful to everyone, however if you note the importance of being able to use the "custom" task type to perform multiple tasks without having to run 2,3,4 tasks individually.
Please shoot me a message if this helped you out :)
Lj