{"id":1790,"date":"2013-05-06T12:16:38","date_gmt":"2013-05-06T12:16:38","guid":{"rendered":"https:\/\/poiseddevelopers.com\/reality-tech\/?p=1790"},"modified":"2024-04-26T12:58:16","modified_gmt":"2024-04-26T12:58:16","slug":"reporting-on-all-sharepoint-search-scopes","status":"publish","type":"post","link":"https:\/\/poiseddevelopers.com\/reality-tech\/reporting-on-all-sharepoint-search-scopes\/","title":{"rendered":"Reporting on all SharePoint Search Scopes"},"content":{"rendered":"<p>Search scopes are often created to refine the results returned on SharePont Search. I\u2019ve written this small snippet of PowerShell as an easy way to get a report on all Scopes. I decided not to embelish it, and keep it quick and (not too) dirty, here goes:<\/p>\n<pre lang=\"php\">\r\n$a = Get-SPEnterpriseSearchServiceApplication #grabs Content and Query\r\n$scopes = $a | Get-SPEnterpriseSearchQueryScope\r\n \r\nforeach ($Scope in $scopes)\r\n{\r\nwrite-host $Scope.name\r\nwrite-host \"=======================\";\r\n$scope.Rules  #outputs all the rules\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Search scopes are often created to refine the results returned on SharePont Search. I\u2019ve written this small snippet of PowerShell as an easy way to get a report on all Scopes. I decided not to embelish it, and keep it quick and (not too) dirty, here goes: $a = Get-SPEnterpriseSearchServiceApplication #grabs Content and Query $scopes [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":1793,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[58],"tags":[],"class_list":["post-1790","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fast-search"],"acf":[],"_links":{"self":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1790","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/comments?post=1790"}],"version-history":[{"count":1,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1790\/revisions"}],"predecessor-version":[{"id":1794,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1790\/revisions\/1794"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media\/1793"}],"wp:attachment":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media?parent=1790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/categories?post=1790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/tags?post=1790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}