Uninstall System Extension Silently

Hello Team,

I want to know if there's a way to uninstall System Extension without prompting the user for authorisation.

These are ways I found to uninstall System Extension

  1. The deactivationRequest api prompts the user for uninstalling System extension.
  2. If I use Apple script to drag and drop the application[which is embedded with System Extension] to trash also prompts the user.

The only workaround that doesn't prompt is by disabling SIP and using the systemextensionsctl uninstall command.

I want to know if there's any other solution that can uninstall System Extension without prompting the user for authorisation.

Thanks!

Answered by DTS Engineer in 808341022

If you’re targeting a managed environment, I recommend that you look for solution in the MDM space. For example, com.apple.system-extension-policy payload gives you some control over this sort of thing. I’m not in expert in device management so I don’t know if this’ll do exactly what you want.

If you’re targeting normal users then, no, there’s no way to do this without user interaction. That makes sense to me; the user should be in charge of the configuration of their system.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

If you’re targeting a managed environment, I recommend that you look for solution in the MDM space. For example, com.apple.system-extension-policy payload gives you some control over this sort of thing. I’m not in expert in device management so I don’t know if this’ll do exactly what you want.

If you’re targeting normal users then, no, there’s no way to do this without user interaction. That makes sense to me; the user should be in charge of the configuration of their system.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Uninstall System Extension Silently
 
 
Q