I want to activate site scoped and web scoped hidden features using Powershell Command. What will be the command?
1 Answer
To just activate the feature use the following command:
Enable-SPFeature –Identity <<FeatureID>> –url http://myspsite/
To find the FeatureID use the following for hidden features:
Get-SPFeature -Limit ALL | Where-Object {$_.Hidden -eq $true -and $_.Scope -eq “WEB”} | Sort-Object DisplayName | Select DisplayName, Id
-
-
Feature will remain hidden, you just activated it. To deactivate it use Disable-SPFeature. Commented Feb 16, 2015 at 15:56
Hidden
attribute on the feature element in PowerShell. Mb this link can help you msdn.microsoft.com/en-us/library/office/…