Recycle remote IIS app pool from the command line?

Posted by Ken on Server Fault See other posts from Server Fault or by Ken
Published on 2011-01-13T22:06:55Z Indexed on 2012/12/17 11:04 UTC
Read the original article Hit count: 343

Filed under:
|
|
|
|

Is it possible to recycle an IIS7 app pool from the command line, on a different machine?

I've found APPCMD (appcmd recycle apppool my-app-pool), but it only operates on the host it's run on, AFAICT.

I heard a rumor there might be a way to do it with Powershell, but I know nothing about that, and I'm apparently not very good at googling for it.

I'm using Vista / Server 2008, if that matters.

EDIT: I found something called WinRM that somebody claims is able to run APPCMD itself, but I'm not sure exactly how, yet.

© Server Fault or respective owner

Related posts about command-line

Related posts about powershell