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
-
if i want to hide again, then what will be the command?SPBeginer– SPBeginer2015-02-16 15:47:58 +00:00Commented Feb 16, 2015 at 15:47
-
Feature will remain hidden, you just activated it. To deactivate it use Disable-SPFeature.Ransher Singh– Ransher Singh2015-02-16 15:56:08 +00:00Commented Feb 16, 2015 at 15:56
Hiddenattribute on the feature element in PowerShell. Mb this link can help you msdn.microsoft.com/en-us/library/office/…