Cisco AnyConnect silent uninstall

This will:
  • detect Cisco AnyConnect 3.1 version
  • kill existing AnyConnect instance
  • stop AnyConnect service
  • uninstall AnyConnect on 32-bit and 64-bit windows
Additional libraries is needed to kill existing instance:

Uninstall script:
This is tested on:
anyconnect-win-3.1.05187-pre-deploy-k9.msi
b260a31b6970073d6157aca648ac5d14
875bbbdd86a65f5c5dab3e3d173fefb00b2f2e1f

7 comments:

  1. This works, Thanks!

    ReplyDelete
  2. where should pskill be placed on the remote machine? in the c:\Windows\System32 I am trying to use this to remote uninstall the clients.

    ReplyDelete
  3. oh god its worked lol

    ReplyDelete
  4. Thanks a lot
    very good script
    Cisco anyconnect Vers: 4.10.03104
    I push it by PDQDEPLOY with a BAT file

    ReplyDelete
  5. Perfect! Thank you.
    Also pushed with PDQ Deploy.
    I just added a second command of "rd /s /q C:\ProgramData\Cisco"

    ReplyDelete