• Mac OS X,  Mac OS X Server,  Mac Security

    Use the textutil Command To Query Office Files For Metadata

    You can use the textutil command to pull metadata information from Office documents. Here, we’ll use the -info option to do so: textutil -info hello.docx The output would be as follows: It might display: Type: Word format Size: 44068 bytes Length: 4234 characters Title: Author: Charles Edge Last Editor: Charles Edge Subject: Keywords: Created: 2015-06-28 08:21:00 -0900 Last Modified: 2015-06-28 10:02:00 -1200 Contents: Hello world

  • Mac OS X,  Mac Security,  Mass Deployment

    Reindex Spotlight from the Command Line

    Spotlight is really a simple tool. Spotlight consists of mds, a command that is the metadata server, mdworker, the pawn that mds sends to scan objects and index them and then the three command lines of mdutil (manage the indexes), mdls (list metadata of an object) and mdfind, which as the name implies, finds things. All of this is used to keep a database called .store.db nested under .Spotlight-V100 at the root of each volume that’s been indexed. To reindex Spotlight from the command line, we’ll use mdutil. From a command prompt, enter the following to index your boot volume. sudo mdutil -E / Or an external drive named krypted:…

  • Mac OS X,  Mac OS X Server,  Mac Security,  Mass Deployment,  Xsan

    Enabling Spotlight For Network Volumes

    Spotlight doesn’t automatically index network volumes. To configure spotlight to index network volumes, use the mdutil command followed by an arbitrary path, with the -i option and then the on parameter. For example, for a volume called Galvatron, you would enable indexing using the following command: mdutil /Volumes/Galvatron -i on To monitor the status of the indexing process: mdutil /Volumes/Galvatron -s If this happens to cause any problems, use the off parameter instead, along with the same command to disable indexing of that volume. mdutil /Volumes/Galvatron -i off You can send the mdutil commands through Apple Remote Desktop. For example, I’ve needed to toggle indexing on and then off, for…

  • Xsan

    Enabling Spotlight for Xsan

    Spotlight has had a pretty checkered past with Xsan. But things are looking a little better and if you want to try enabling it again, once you’ve fully updated to 2.2 you can do so without too much fanfare. Simply locate the config file for the name of the volume you wish to enable spotlight for, which is in /Library/FileSystems/Xsan/config and is named with the name of the volume followed by a .cfg file extension. Once located, open the file in your favorite text editor (ie – pico, vi, etc). Then, locate the entry for EnableSpotlight, which should be set to No. Change the No to a Yes. You can…

  • Mac OS X

    Disable Spotlight Indexing

    Spotlight indexing is automatically disabled in Mac OS X Server and automatically enabled in Mac OS X. The mdutil command can be used to enable/disable indexing per volume. To enable indexing on a volume you would use the -i option followed by on and then the volume name. For example, if you wanted to enable Spotlight indexing for a volume called bighonkinvolume you would use the following command: mdutil -i on bighonkinvolume Whereas to then disable Spotlight indexing on that same volume you would use the -i option again followed by off this time. For example: mdutil -i off bighonkinvolume Alternatively, there is a GUI tool called Spotless that provides…