Spark.properties for all users

I have gotten Spark (Build 668) configured and branded as I needed, and am ready to deploy out to my users. I would like to pre-configure some settings such as the Port, Auto-login, save password, etc… but those settings are stored in the spark.properties file that is located in the users %Appdata%\Spark folder.

Any suggestions on how I can deploy with those settings intact?

Thanks.

You need some script to edit those files and replace strings with what you want. When we were using another client i had a vbs script, which modified settings xml file. But i wasn’t running it on every user’s PC as we had settings files stored on the server and every settings file was in its own folder (that’s why script is going to subfolders, you don’t need that part probably). But you can probably modify it. Here’s that vbs script:

Const ForReading = 1

Const ForWriting = 2

Set objFSO = CreateObject(“Scripting.FileSystemObject”)

Set objFolder = objFSO.GetFolder(“E:\SomeFolder”)

RepSubfolders objFolder

Sub RepSubFolders(Folder)

For Each Subfolder in Folder.SubFolders

Set objFile = objFSO.OpenTextFile(Subfolder & “\settings.xml”, ForReading)

strText = objFile.ReadAll

objFile.Close

strNewText = Replace(strText, “192.168.12.41”, “jiveserver”)

Set objFile = objFSO.OpenTextFile(Subfolder & “\settings.xml”, ForWriting)

objFile.WriteLine strNewText

objFile.Close

Set objFile = objFSO.OpenTextFile(Subfolder & “\settings.xml”, ForReading)

strText = objFile.ReadAll

objFile.Close

strNewText = Replace(strText, “false”, “true”)

Set objFile = objFSO.OpenTextFile(Subfolder & “\settings.xml”, ForWriting)

objFile.WriteLine strNewText

Next

End Sub

I am not very good with vbs scripts, but I think I can follow what you have done here. My thought would be to use something like this in a GPO, so that even if a new user logs in the correct settings would be applied.

Thanks for the help, I think you’ve got me headed in the right direction.