@alemabrahao thanks for helping with this. I have got it working. Reboot seems to be key to this once the xml files have been deployed unless its a fresh install. Copy preferences.xml and preferences_global.xml from a new machine after you have disabled captive portal detection. Do not connect to the vpn on your new machine or it will store your credentials as the defaults via the xml files. Your xml files should have the following line in them <DisableCaptivePortalDetection>true</DisableCaptivePortalDetection> I'm using the following script to deploy the software via intune incase it helps anyone in the future. Detection method is the MSI product code. #Starts installation of components and waits for completion
Start-Process msiexec.exe -ArgumentList "/i core.msi /qn /norestart" -Wait
Start-Process msiexec.exe -ArgumentList "/i sbl.msi /qn /norestart" -Wait
#Copies VPN Profile to local machine
Copy-Item .\Profile.xml -Destination "c:\ProgramData\Cisco\Cisco Secure Client\VPN\Profile" -force
Copy-Item .\preferences_global.xml -Destination "c:\ProgramData\Cisco\Cisco Secure Client\VPN" -force
#delete preferences file for vpn for local user profiles
$paths = Get-ChildItem -Directory c:\users | Select-Object $_.Name
ForEach ($path in $paths){
If (test-path "c:\users\$path\AppData\Local\Cisco\Cisco Secure Client\VPN\Preferences.xml")
{
Remove-Item -Path "c:\users\$path\AppData\Local\Cisco\Cisco Secure Client\VPN\Preferences.xml" -Force
Copy-Item .\preferences.xml -Destination "c:\users\$path\AppData\Local\Cisco\Cisco Secure Client\VPN\" -force
}
}
... View more