Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

swkwan2000

macrumors newbie
Original poster
Oct 31, 2022
1
0
There is a new feature on MacOS Ventura when new USB and Thunderbolt accessories require user approval before the accessory can communicate with macOS for connections wired directly to the USB-C port. On GUI we can change the setting on System Settings>Security & Privacy>Security. However, we have a OS deployment workflow which using USB-C ethernet adapter for network connection. This change make my USB ethernet adaptor does not work after Ventura installed. I need to write a custom script which can use it on the workflow. Does anyone know the command in CLI/Script for alway allow any USB-C accessories?

Thanks.

Best Regards,
Ray
 

bogdanw

macrumors 603
Mar 10, 2009
5,968
2,912
“Allow access to USB and Thunderbolt accessories
On supervised Mac laptops with Apple silicon, administrators can control this setting.”
https://support.apple.com/en-us/HT213430

“Bypassing user authorization might be required for some environments. MDM solutions can control this behavior by using the existing allowUSBRestrictedMode restriction to always allow Thunderbolt and USB accessories.”
https://support.apple.com/guide/deployment/manage-thunderbolt-and-usb-pairing-depf8a4cb051/web

“allowUSBRestrictedMode
If false, allows the device to always connect to USB accessories while locked. On macOS, allows new USB accessories to connect without authorization.
Requires a supervised device. Available in iOS 11.4.1 and later and macOS 13 and later.”
https://developer.apple.com/documentation/devicemanagement/restrictions
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.