Good afternoon.
I use the spark installation in my network as a silent install with the -q option (i use a script)
I want to know which parameter I have to put to the installation script so that I select the option accept all the certificates. (in the login screen, advanced options)
Thanks
wroot
February 9, 2017, 4:19pm
2
You can’t add it during the installation. You should add this to spark.properties file in every user’s profile:
AcceptAllCertificates=true
Se vocĂŞ trabalha com domĂnio na sua rede pode criar um script de logon de usuário para fazer a alteração em massa do arquivo spark.properties.
Segue exemplo de script que encontrei na internet e adaptei para utilização na empresa:
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, “AcceptAllCertificates=false”, “AcceptAllCertificates=true”)
objTS.WriteLine strContents
objTS.Close
Else
End If
1 Like