11-09-2018 09:30 AM
I have a Win 10 Pro laptop that's connecting to my ASA, and the OnConnect script doesn't seem to launch. I can look through the event log and see where it downloads the script (and I can run that script at the command prompt, and get the expected results) but nothing about executing it, not even a failure. I see the Client download the updated XML file for the profile (that has scripting enabled) as well.
ASA version 9.8(2)38
AnyConnect Secure Mobility Client version 4.6.00362
Windows version 10.0.17134.376 (1803)
11-09-2018 11:10 AM
so you see the script downloaded to respected folder.
%ALLUSERSPROFILE%\Cisco\Cisco AnyConnect Secure Mobility Client\Script
what is that script can you show us example ? is this Powershell or bat file ?
11-09-2018 11:49 AM - edited 11-09-2018 11:49 AM
Yes, I tried both a .BAT and a .CMD file and they both downloaded to that location. The script is very simple, it just restarts a service that requires network connectivity to an on-net server at startup, and never retries if it fails.
@echo off echo Please wait, restarting XCA... echo. Timeout /T 10 /NOBREAK sc stop XperienceClientAgent Timeout /T 5 /NOBREAK sc start XperienceClientAgent echo. echo Restart complete...
Am I correct that I should see a CMD window show up when this runs?
11-09-2018 12:50 PM
yes it should do in command level
Try simple commands
echo "BBBB" <-- you need quote.
Timeout /T 10 /NOBREAK
11-19-2019 07:25 PM
Hi - I am having the same problem, did you resolve it? Do you mind to share the solution? Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide