Windows – Enable SP-Feature is unavailable

powershellsharepointwindows server 2012

I'm trying to use Powershell to enable the devlopment feature on a SharePoint site (as per this article: http://blogs.msdn.com/b/how24/archive/2013/06/14/prepare-your-sharepoint-2013-farm-for-app-development-and-debugging.aspx) When I do this I'm presented with the following error:

The term 'Enable-SPFeature' is not recognized' as the name of a cmdlet, function, script file, or operable program.

A screenshot of my input/output is below:

enter image description here

I'm unsure why this is happening – I'm on the SharePoint server I want to enable this feature on and as far as I know everything required is installed. What am I doing wrong?

Best Answer

I'm not sure if this will help anyone going forward, however when I added the Snapin it still failed. I needed to also explicitly Import the module too like so:

Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue

Import-Module ‘C:\Program Files\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell’ -DisableNameChecking

I had downloaded the Snapin from here: https://www.microsoft.com/en-gb/download/details.aspx?id=35588

Related Question