在Powershell中运行Invoke-RestMethod时出现超时错误

时间:2014-05-08 08:33:47

标签: windows powershell

此Powershell命令:

Invoke-RestMethod -Uri $uri -Method POST 
-ContentType 'application/x-www-form-urlencoded; charset=utf-8' -Body $body

出现此错误:


System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: Failed to execute the powershell script with error: The operation has timed out.

已执行的脚本:

$SubScription = '84372afc-befd-47f0-92db-268539982d02'; 
$FeaturePackID = '1c17cf71-8438-45ee-a14a-59ebe4332c36';
$CustomerOU = 'OU=ss34(ss34),OU=Customers,DC=MANHATTAN,DC=local';
Add-PSSnapin microsoft.sharepoint.powershell;
if ($SubScription -eq '') { 
    $sub = New-SPSiteSubscription; 
} else

请帮我解决这个问题。任何帮助都会得到很多赞赏。

0 个答案:

没有答案