Hi everyone!

This is a fast one, recently a customer asked me how should they know under which folder is stored the index location, so I prepared this little script for it:

$ssa = Get-SPEnterpriseSearchServiceApplication 
$ssa.AdminComponent.IndexLocation

TIP: Be sure the user who is running this script has enough privileges over the search databases, as well as the configuration database.

Enjoy!