I hate being a windows admin, and hate batch scripts even more. And since powershell can’t be assumed to be on every system, here’s a quick AutoIt script I wrote recently to help automate a fresh install of Spark.
It assumes a few things, mainly that the Client Control plugin is installed on Openfire and there is an uploaded Spark exe for that plguin to serve up at a special URL the plugin creaates. It also assumes that you want to backup the transcript logs and then completely wipe out the Spark Application Data directory to essentially force a complete new profile on that computer (nothing is saved it is as-if spark was installed for the first time).
AutoIt is pretty straight forward, so feel free to modify it for your situation. This could be used in a GPO if modified a little bit. At the time I wrote this, I was unaware of the silent install switch, so you can easily change that bit to avoid having any user interaction as this script runs.
Also, it’s worth noting that the Client Control plugin has an Update feature built in. If you upload a Spark exe to that plugin, next time your Spark clients check for an update, they will ask the user if they want to download it and install. This is quite helpful if you have an in-house Spark version that you maintain (for company branding, or removal of features, hard-code server names, etc).
Edit: Pastbin may not be around forever, so I attached the raw script for download. You will need to open it in AutoIt’s SciTE editor and have it build the exe for you. Then you can push this to any system even if AutoIt is not installed.
Edit 2: A disclaimer before somebody runs this and looses transcript history or something. If the user this script is run under does not have full administrator permissions on that machine, then you run an extreme risk of transcripts not being backed up even though the script will report they have been. I didn’t build logic in to verify backup since this was not a problem for my network.
Fresh_Spark.au3.zip (2088 Bytes)