How to enable search on network shared drive (Mac)

How to enable search on network shared drive (Mac)

So the indexing of network attached drives is disabled by default on Macs now.

 

To enable spotlight indexing on a network drive:

 

mdutil /Volumes/name -i on

 

To disable the indexing of a connected network drive:

 

mdutil /Volumes/name -i off

 

To check the status of indexing on a connected network drive:

 

mdutil /Volumes/name –s