Enable SP-Feature is unavailable

6,108

Solution 1

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

Solution 2

Have you tried adding the SharePoint snap-in to your current session?

Add-PSSnapin Microsoft.SharePoint.PowerShell
Share:
6,108

Related videos on Youtube

Michael A
Author by

Michael A

Updated on September 18, 2022

Comments

  • Michael A
    Michael A over 1 year

    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?

  • Michael A
    Michael A over 10 years
    Ahem. Whoops! That's embarrassing...
  • Jacques
    Jacques over 7 years
    @darinstrait I've tried running this after installing SharePoint PowerShell, but I get "snap-in 'Microsofot.SharePoint.PowerShell' is not installed on this computer. Is this something else that needs to be installed separately?
  • Jacques
    Jacques over 7 years
    @darinstrait this is for Sharepoint Online by the way. Not sure if that makes a difference. I've installed SharePoint Online Management Shell from here microsoft.com/en-za/download/details.aspx?id=35588