Category filter
Script to enable/disable AirDrop on Mac
AirDrop functionality lets users transfer files between nearby Apple devices. However, if you want to restrict file transfers via AirDrop in your corporate environment, you can restrict the AirDrop functionality. By executing dedicated terminal commands, you can disable or re-enable AirDrop whenever necessary. The Execute Custom Scripts action lets you remotely run these commands on macOS devices.
Disable AirDrop
Execute this script to disable the AirDrop functionality:
1 2 3 |
#!/bin/sh sudo ifconfig awdl0 down |
Enable AirDrop
The following script helps you to re-enable AirDrop functionality:
1 2 3 |
#!/bin/sh sudo ifconfig awdl0 up |