how to operate On List of IIS Application Pools On Remote Server Using Powershell? -


i trying build powershell program would:

  1. connect remote server
  2. show number of active iis app pools on active server
  3. 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