任何人都可以告诉我为什么我收到此代码的错误消息: 我正在尝试使用wmi脚本回收应用程序池
错误的行是"设置objWMIService ..."
错误信息是" 0x8004100E"
RecycleAppPools("myComputerName")
Sub RecycleAppPools(strComputer)
set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}//" _
& strComputer & "/root/MicrosoftIISv2")
Set colItems = objWMIService.ExecQuery _
("Select * From IIsApplicationPool ")
For Each objItem in colItems
objItem.Recycle
Next
End Sub