Skip to main content
Solved

Stop Spotlight from indexing files

  • January 20, 2025
  • 2 replies
  • 30 views

Forum|alt.badge.img+8

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.

Best answer by Shyamsundar

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

-d             Disable Spotlight activity for volume

2 replies

Shyamsundar
Forum|alt.badge.img+13
  • Jamf Heroes
  • Answer
  • January 20, 2025

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

-d             Disable Spotlight activity for volume


Forum|alt.badge.img+8
  • Author
  • Contributor
  • February 6, 2025

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?