Skip to main content
Solved

Stop Spotlight from indexing files

  • Jan 20, 2025 12:27 PM UTC
  • 2 replies
  • 148 views

Forum|alt.badge.img+9

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

View original

2 replies

Shyamsundar
Forum|alt.badge.img+14
  • Jamf Heroes
  • Answer
  • Jan 20, 2025 3:55 PM UTC

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

-d             Disable Spotlight activity for volume


Forum|alt.badge.img+9
  • Author
  • Valued Contributor
  • Feb 6, 2025 9:41 AM UTC

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?