Unlock network preference pane - without prompt

Jarrad-AFCU
New Contributor

So I'm currently using this to unlock the network preference pane

#!/bin/sh
security authorizationdb write system.preferences allow
security authorizationdb write system.preferences.network allow
security authorizationdb write system.services.systemconfiguration.network allow

However since Catalina, I get a prompt that says "Wi-Fi would like to make changes. Enter an administrators name and password to allow this." If you hit cancel, the change still takes place and you can still hit Apply...Is there any way that anyone has figured out to suppress that pesky prompt?

0 REPLIES 0