阅读背景:

如何使用PowerShell远程检查Web应用程序池的状态?

来源:互联网 

I see a lot of scripts for recycling application pools on a web server running IIS7 but is there a way to check, with PowerShell, that the web application pool is running or stopped? I can't seem to figure out a way to remotely have Get-WebAppPoolState return the status on the Application Pool, and my Google-fu has not been able to come up with a replacement. I can remotely get gwmi to work and recycle or start my app pools but ideally I only want to have to run this if the app pool is actually stopped.I see a lot of scripts for recycling applicatio




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: