Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Windows 2008 中有可以这样使用的 APPCMD:
appcmd list request appcmd list request /apppool.name:DefaultAppPool
有没有办法在 Powershell 中实现这一点?
有一种方法。
我使用以下内容:
Get-Website | where {$_.name -eq $webSite} | Get-WebRequest
该变量$webSite只是网站名称,但Get-WebSite -Name "SiteName"似乎不起作用。
$webSite
Get-WebSite -Name "SiteName"
https://technet.microsoft.com/en-us/library/ee790581.aspx