Friday, 29 January 2016

OneLiners in Powershell with SharePoint for Features

#Get details of a specific feature like AdminLinks
Get-SPFeature -Identity "AdminLinks"
#Get SP 2010 features
Get-SPFeature -CompatibilityLevel 14
#Get features scoped at farm level
Get-SPFeature -Farm
#Get all properties of first feature
Get-SPFeature | select -Property * -first 1
#Get all hidden features
Get-SPFeature | ?{$_.Hidden -eq $true} | select DisplayName,ID,RootDirectory
#Get count of all features
Get-SPFeature |measure

No comments:

Post a Comment