invoke-restmethod and powershell v2 - SharePoint Management - SharePoint for All - Dell Community

invoke-restmethod and powershell v2

invoke-restmethod and powershell v2

This question has been answered by DELL-Konstantin V

Hi guys,

I am asking this question on behalf of a customer:

We are in the process of automating sql import job for the sites report in the Site Administrator for SharePoint using the invoke-restmethod and we are having issues runnning this in powershell v2. Is there any other way we can do this ?

invoke-restmethod -method PUT -usedefaultcredentials "http://servername:3141/api/schedule/report" (http://servername:3141/api/schedule/report%27) -body "task_id=SASP_Reports_Monthly_task&report_name=sites&url=http://sharepointserver/site&target=sql" (http://sharepoint/site&target=sql)

Any help would be apprecaited.

Thanks,

John Allan

Verified Answer
All Replies