cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2317
Views
5
Helpful
4
Replies

AnyConnect OnConnect script not launching

Greg Dickinson
Level 1
Level 1

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)

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

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 ?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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?

yes it should do in command level

 

Try simple commands

 

echo "BBBB"  <-- you need quote.
Timeout /T 10 /NOBREAK

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

TCAM
Level 1
Level 1

Hi - I am having the same problem, did you resolve it?  Do you mind to share the solution?  Thanks

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: