i trying build powershell program would:
- connect remote server
- show number of active iis app pools on active server
- based on selection (1,2,3,4,....n etc) reset app pool
can please give me tips?
give try:
[reflection.assembly]::loadwithpartialname('microsoft.web.administration') $sm = [microsoft.web.administration.servermanager]::openremote('server1') $sm.applicationpools['apppoolname'].recycle()
Comments
Post a Comment