@MacJunior Thank you for this! I had copied the example on one of Cisco's KB articles and it was slightly different. I changed the different ones to what's in your screen shots and everything worked.
@MacJunior I build exactly what's in the screenshots. But it didn't work. My test machine ist a MacBook Pro with M1 CPU. Can anyone confirm that this is working also on Apple Silicon?
Update: Finally I got it working: I had to uninstall and after a reboot reinstall AnyConnect. This works for my environment. I also think there is a bug in your screenshots in Content Filter -> Identifier: com.cisco.anyconnect.macos.acsock should be com.cisco.anyconnect.macos.acsockext
I have the silent-install working perfectly, but getting prompted when uninstalling for user interaction "Cisco AnyConnect Socket Filter is trying to modify a System Extension," when uninstalling via:
"/opt/cisco/anyconnect/bin/anyconnect_uninstall.sh"
"/opt/cisco/anyconnect/bin/dart_uninstall.sh"
These are being executed via Jamf and attempted as CuurectUser too...
tbh I haven't tried it yet but since Apple has deprecated KEXTs in Big Sur and moved to System extensions then -1 vendor needs to update their app and we need to approve their system extension.
Speaking of Drive File Stream .. how did you approved its kernel extension?
Can I resurrect this post? I dont have a need for the filter portion, but the system/kernal are in place and Im still getting a prompt to the user. Machines are running Monterey.
We configured the needed configuration profiles for Cisco AnyConnect (VPN) since Big Sur was released. We have no issues with installing it (Big Sur and Monterey). But when uninstalling it, we still get this popup window:

As we normally run the following uninstall script before updating (installing) a new Cisco AnyConnect version, all of our users will see this popup, which is not, what we want of course.
#!/bin/bash
# Get VPN status
vpnstate=$(/opt/cisco/anyconnect/bin/vpn status | grep Disconnected)
# Check if vpn update can run. If vpn is connected, exit.
if [[ "$vpnstate" == *"Disconnected"* || ! -f /opt/cisco/anyconnect/bin/vpn ]]; then
echo "VPN not connected or not installed. Running Update Policy."
sudo killall "Cisco AnyConnect Secure Mobility Client"
sudo /opt/cisco/anyconnect/bin/vpn_uninstall.sh
sudo /opt/cisco/anyconnect/bin/nvm_uninstall.sh
sudo /opt/cisco/anyconnect/bin/websecurity_uninstall.sh
sudo rm -rf /System/Library/StartupItems/CiscoVPN
sudo rm -rf /Library/StartupItems/CiscoVPN
sudo rm -rf /System/Library/Extensions/CiscoVPN.kext
sudo rm -rf /Library/Extensions/CiscoVPN.kext
sudo rm -rf /Library/Receipts/vpnclient-kext.pkg
sudo rm -rf /Library/Receipts/vpnclient-startup.pkg
sudo pkgutil --forget com.cisco.pkg.anyconnect.vpn
# Reinstalling Cisco AnyConnect
/usr/local/bin/jamf policy -event anyconnect
exit 0
else
echo "VPN is connected. Exit."
exit 1
fi
Does anybody know, how we can suppress this popup when uninstalling Cisco AnyConnect? Thanks!
Has anyone used the above on macOS Ventura Beta?