所有订阅清单

时间:2015-12-14 14:43:52

标签: sharepoint reporting-services

如何在Sharepoint 2010上查看所有报告的订阅?

我只知道如何检查特定报告的下属:

enter image description here

1 个答案:

答案 0 :(得分:2)

不幸的是,您无法从GUI执行此操作。您将不得不打破PowerShell以获取此信息。

注意:我没有测试过这段代码,有点从嘻哈写下来,但要点应该可以帮助你了。:

$spWeb = Get-SPWeb <Site reports are contained in>
$spRepList = $spWeb.Lists["<List containing reports Name>"];
#Get all files
$spFileList = $spRepList.Files;

foreach($spFile in $spFileList)
{
   #determine if the file is a report or a regular document
   if($spFile.URL -like "*.rdl")
   {
      $reportServiceProxy = New-WebServiceProxy -URI <url to the reporting web service> -Namespace <Namespace of the service> -UseDefaultCredentials
      $subscriptionList += $reportServiceProxy.ListSubscriptions($site);

      #From here you can write to a file or write to the screen.  I will let you decide
      $subscriptionList | select Path, report, Description, Owner, SubscriptionID, lastexecuted,Status | where {$_.path -eq $spFile.URL}
   }
}

希望这有帮助。

戴夫

相关问题