Я пробовал читать параметры подписки, а затем попытался обновить его новым описанием. Вот код.
$Proxy.GetSubscriptionProperties($_.SubscriptionID, [ref]$ExtensionSettings, [ref]$Description, [ref]$Active, [ref]$Status, [ref]$EventType, [ref]$MatchData, [ref]$Parameters)
$Proxy.SetSubscriptionProperties($_.SubscriptionID, $ExtensionSettings, $New_Description, $EventType, $MatchData, $Parameters)
Но он бросает под ошибкой:
Исключение вызывающего "SetSubscriptionProperties" с "6" аргумент (ы): «System.Web.Services.Protocols.SoapException:. Ошибка доставки произошло - -> Microsoft.ReportingServices.Diagnostics.Utilities.DeliveryErrorException: произошла ошибка доставки. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InvalidExtensionParameter: Один из параметров расширения недопустим по следующей причине: Необходимая настройка «PASSWORD» не найден. в Microsoft.ReportingServices.Library.ReportingServi ce2005Impl.SetSubscriptionProperties (String SubscriptionId, ExtensionSettings ExtensionSettings, булева isDataDriven, DataRetrievalPlan DataRetrievalPlan, Строка Описание, Строка типСобытия, Строка MatchData, ParameterValueOrFieldReference [] Параметры, Guid batchId) на Microsoft.ReportingServices.Library.ReportingService2005Impl.SetSubscriptionProperties (String SubscriptionId, ExtensionSettings ExtensionSettings, булева isDataDriven, DataRetrievalPlan DataRetrievalPlan, Строка Описание, Строка типСобытия, Строка MatchData, ParameterValueOrFieldReference [] Параметры) на Microsoft.ReportingServices.WebServer.ReportingService2010.SetSubscriptionProperties (String SubscriptionId, ExtensionSettings ExtensionSettings, Строка Описание, Строка типСобытия, String MatchData , ParameterValue [] Параметры) " В C: \ Users \ XXXX \ UpdateSubscriptions.ps1: 41 char: 21 + $ Proxy.SetSubscriptionProperties ($ _. SubscriptionID, $ Extensi ... + ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ + CategoryInfo: NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId: SoapException
Вот как я назвал его и построил export'd XML в \t $ ssrsproxy = New-WebServiceProxy -uri 'HTTP: //sharepointsite/sites/_vti_bin/ReportServer/ReportService2010.asmx' -namespace «SSRSProxy '-class' ReportService2010 '-UseDefaultCredential \t $ Reports = get-subscriptions -ssrsproxy $ ssrsproxy -site' http: // sharepointsite/sites/' \t New-SubscriptionFile -subscriptionObject $ reports -path C: \ temp \ reports –