Stop Spotlight from indexing files

Andixon
Contributor

I would like to stop spotlight from indexing certain locations across all my Macs. I need it to stop indexing the mounted network shares. Is there a way to do that? I could not find a setting regarding that in Jamf Pro.

1 ACCEPTED SOLUTION

Shyamsundar
Contributor III

use the mdutil -d /path command to disable the index

-d             Disable Spotlight activity for volume

View solution in original post

2 REPLIES 2

Shyamsundar
Contributor III

use the mdutil -d /path command to disable the index

-d             Disable Spotlight activity for volume

I tried this and when I do it locally on the machine there is no problem, but when I push it as a script via jamf I get the following error: 

Error: invalid operation. Error: unknown indexing state.

Do perhaps know how to solve this?