02 May 2012

Enable-SPFeature: The Feature is not a Farm Level Feature and is not found in a Site level defined by the Url

After running the following command

Enable-SPFeature-Identity DocumentSet-URL http://url

I received the following error

Enable-SPFeature: The Feature is not a Farm Level Feature and is not found in a Site level defined by the Url ...

Why ???

It happened to me because I copied some files at the time manually (not using the solution).
The team system locks the files to ReadOnly.
And the command fails (the readonly found only a deep excavation in the log files of sharepoint)



The solution: Disables the ReadOnly for all the files in sub folders.
It can be found here:

Uncheck read only file for all sub folder with PowerShell

I use this code at 14\Template folder
Thanks,
Roi