Carsten
1
Hey there,
im looking for arguments in the default.properties to deploy these settings from the spark.properties to every user before the first start of Spark.
offlineGroupVisible=false
showOfflineUsers=true
showEmptyGroups=true
Are there any Arguments, wich control these settings?
Greetz
Você pode implementar um script de logon para fazer a alteração do arquivo spark.properties (%appdata%\spark\spark.properties) nos computadores.
Exemplo:
Const FOR_READING = 1
Const FOR_WRITING = 2
Set wshShell = CreateObject( “WScript.Shell” )
strFileName = wshShell.ExpandEnvironmentStrings( “%appdata%” ) & “\spark\spark.properties”
Set objFS = CreateObject(“Scripting.FileSystemObject”)
If objFS.FileExists (strFileName) Then
Set objTS = objFS.OpenTextFile(strFileName, FOR_READING)
strContents = objTS.ReadAll
objTS.Close
Set objTS = objFS.OpenTextFile(strFileName, FOR_WRITING)
strContents = Replace(strContents, “offlineGroupVisible=true”, “offlineGroupVisible=false”)
strContents = Replace(strContents, “showOfflineUsers=false”, “showOfflineUsers=true”)
strContents = Replace(strContents, "showEmptyGroups=false, “showEmptyGroups=true”)
objTS.WriteLine strContents
objTS.Close
Else
End If
Carsten
3
Thx,
i think i can assume what your suggestion is, but im not looking for an LogOn Script.
wroot
4
If you don’t find such settings in default.properties, it means there are no such settings. So, your only option is some scripts.