When you choose to put index in a non default location i.e. D:\SharePointIndex the above error occurs.
I've looked into it and when not using default "-rootdirectory" WSS_WPG group don't get correct permissions on
C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\Applications.
It should have "Full Control"
Comments: ** Comment from web user: sbarakett **
Our SP2013 indexes are in a folder on my F: drive. The folder was created by the search service upon creation, the folder was shared, and the security was set by the Search service. We did not move them there, we did not change any security settings, and our search works fine.
We did not use the codeplex scripts because we wanted to learn powershell (I am a Newb) so we created our own PS scripts based on what we found on the internet. It was not easy, the search was one of the more difficult scripts to get working, but it works well.
I don't think it's a SP2013 bug, it may be a problem with the codeplex script. Not trying to bash anyone's work, just a thought.
I don't feel comfortable posting my script because I don't know who to give credit to. My scripts are mostly found on the internet and adapted to my needs. I do not want to take credit for someone else's work, and I don't know where I found the search script in order to give credit, where it is due. I am not sure how that works. If it helps, I can post the portions of the script that create the search if that helps someone.