查看应用程序池配置:
Get-WMIObject -class IISApplicationPoolSetting -namespace "root\microsoftiisv2" |where {$_.name -eq "W3SVC/APPPOOLS/api"}
Get-WmiObject -Namespace root\WebAdministration -ComputerName . -Class Server
gwmi -list * -namespace "root\microsoftiisv2"
=========================
Get-Module -ListAvailable
Import-Module WebAdministration 导入IIS管理模块
gci iis:\
原文地址:http://www.cnblogs.com/dreamer-fish/p/3880997.html