{"id":393,"date":"2013-04-04T09:31:36","date_gmt":"2013-04-04T09:31:36","guid":{"rendered":"https:\/\/poiseddevelopers.com\/reality-tech\/?p=393"},"modified":"2024-04-26T13:06:05","modified_gmt":"2024-04-26T13:06:05","slug":"sharepoint-feature-activation-report","status":"publish","type":"post","link":"https:\/\/poiseddevelopers.com\/reality-tech\/sharepoint-feature-activation-report\/","title":{"rendered":"SharePoint Feature Activation Report"},"content":{"rendered":"<h4>SharePoint Active Feature Report<\/h4>\n<div>There are times that it is useful to know which site collections have a given feature active. First, let\u2019s find the feature by name and GUID using this CmdLet:<\/div>\n<pre lang=\"php\">\t\r\nGet-SPFeature\r\n<\/pre>\n<p>Now let\u2019s do a report of which site collections have the feature enabled\/disabled:<\/p>\n<pre lang=\"php\">$TargetFeatureName = \"OpenInClient\"\r\n \r\n$webapp= Get-SPWebApplication -identity \"ht tp:\/\/SharePoint\"\r\nforeach($site in $webApp.Sites)\r\n{\r\n  $feature=Get-SPFeature -Site $site | Where-object {$_.DisplayName -eq $TargetFeatureName}\r\n  if($feature -ne $null)\r\n   {\r\n    Write-host \"$($TargetFeatureName) Feature Activated at\" $site.Rootweb.URL\r\n    }\r\n    else\r\n    {\r\n    Write-host -ForegroundColor DarkRed \"$($TargetFeatureName) Feature Not Activated at\" $site.Rootweb.URL\r\n    }\r\n  }\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>SharePoint Active Feature Report There are times that it is useful to know which site collections have a given feature active. First, let\u2019s find the feature by name and GUID using this CmdLet: Get-SPFeature Now let\u2019s do a report of which site collections have the feature enabled\/disabled: $TargetFeatureName = &#8220;OpenInClient&#8221; $webapp= Get-SPWebApplication -identity &#8220;ht tp:\/\/SharePoint&#8221; [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":400,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[26],"tags":[],"class_list":["post-393","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"_links":{"self":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/comments?post=393"}],"version-history":[{"count":5,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/393\/revisions"}],"predecessor-version":[{"id":490,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/393\/revisions\/490"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media\/400"}],"wp:attachment":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/categories?post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/tags?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}