Skip to main content
Question

Airdrop

  • August 3, 2017
  • 9 replies
  • 25 views

Forum|alt.badge.img+8

Hi All

Does anyone know how to actually disable the Airdrop service on OSX Sierra ( I've tried the command "defaults write com.apple.NetworkBrowser DisableAirDrop -bool YES" ) dont the Mac's are still broadcasting via Airdrop

I've restricted AirDrop using a configuration profile - But this only removes the AirDrop from Finder and not actually disables the service

Any advice would be greatly appreciated

9 replies

anverhousseini
Forum|alt.badge.img+11
  • Valued Contributor
  • 98 replies
  • August 3, 2017

Enable AirDrop:

defaults write com.apple.sharingd DiscoverableMode "Everyone"

or

defaults write com.apple.sharingd DiscoverableMode "Contacts Only"

Disable AirDrop:

defaults write com.apple.sharingd DiscoverableMode "Off"

Forum|alt.badge.img+8
  • Author
  • Contributor
  • 44 replies
  • August 4, 2017

@anverhousseini Thanks very much, that worked


Forum|alt.badge.img+3
  • New Contributor
  • 2 replies
  • October 1, 2018

Hi @anverhousseini.

does the configuration of discoverableMode in domain com.apple.sharingd you presented in your answer effect merely airdrop , or also other applications that uses sharingd ?

I wish to disable airdrop for security reasons for all the clients in my organizations, but I don't want side effect with other apps that might use this feature..

thanks !


Forum|alt.badge.img+7
  • Contributor
  • 42 replies
  • October 11, 2018

Hi @anverhousseini

is there anyway to apply this on iOS devices?


Forum|alt.badge.img+11
  • Contributor
  • 117 replies
  • October 26, 2018

you can do it through a config profile for both iOS and macOS


Forum|alt.badge.img+2
  • New Contributor
  • 1 reply
  • November 7, 2018

Does anyone know how to disable AirDrop from the command line in Mojave? It seems like the com.apple.sharingd plist no longer exists. Thanks


Forum|alt.badge.img+3
  • New Contributor
  • 4 replies
  • December 22, 2022

Enable AirDrop:

defaults write com.apple.sharingd DiscoverableMode "Everyone"

or

defaults write com.apple.sharingd DiscoverableMode "Contacts Only"

Disable AirDrop:

defaults write com.apple.sharingd DiscoverableMode "Off"

@anverhousseini 

can you clarify how I can add the below within jamf pro?  is this within the configuration profile or is this a script? any help would be helpful! 

defaults write com.apple.sharingd DiscoverableMode "Off"


Forum|alt.badge.img+1
  • New Contributor
  • 2 replies
  • March 14, 2023

How can one disable AirDrop in Mojave via the command line? It appears that com.apple.sharingd no longer exists.  

x trench run


Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • April 7, 2023

How can one disable AirDrop in Mojave via the command line? It appears that com.apple.sharingd no longer exists.  

x trench run


 

To disable AirDrop in Mojave via the command line, follow these steps:

  1. Open Terminal, located in the Utilities folder within the Applications folder.

  2. Type the following command and press Enter:

 

bashCopy code
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.smbd.plist

 

 
  1. Enter your administrator password when prompted.

  2. This will stop the sharing of files via SMB, which includes AirDrop.

Note: Keep in mind that this will disable AirDrop for all users on the Mac. To enable it again, simply type the following command into the Terminal and press Enter:

 

bashCopy code
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.smbd.plist