【发布时间】:2013-08-26 12:55:38
【问题描述】:
http://technet.microsoft.com/en-us/library/cc772183(v=ws.10).aspx 页面解释了如何启用 HTTP Keep-Alive 响应标头 (IIS 7)
我想在 WMI 的 Powershell 中执行此操作
上面写着:
使用以下 WMI 类、方法或属性来执行此操作 程序: HTTPProtocolSection.AllowKeepAlive 属性
我试过了:
PS > Get-WmiObject -Class HTTPProtocolSection
Get-WmiObject : Invalid class
At line:1 char:14
+ Get-WmiObject <<<< -Class HTTPProtocolSection
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException
+ FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
使用这个 HTTPProtocolSection 类并启用 AllowKeepAlive 属性的正确方法是什么?
【问题讨论】:
标签: iis powershell wmi keep-alive