2015-05-28 86 views

回答

0

Here我找到了適用於我的解決方案。我是前提:

$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService 
$type = $contentService.gettype() 
$config = new-object Microsoft.SharePoint.SPWebProxyConfig 
$configType = $config.gettype() 
$methods = $Type.GetMethods() | where-object {$_.Name -eq "GetChild"} 
$gm = $methods[1].MakeGenericMethod($configType) 
$realConfig = $gm.Invoke($contentService , $null) 
if ($realConfig -eq $Null) 
{ 
$config.update() 
$realConfig = $gm.Invoke($contentService , $null) 
} 
$realConfig.MaxResponseSize = 400000 #this is an Integer so up to 2GB 
$realConfig.update()