Recycle remote IIS app pool from the command line?
- by Ken
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.