Iis – How to remotely recycle an application pool of IIS 8.5

iisiis-8.5

Can I remotely recycle a certain application pool of IIS 8.5 on Windows Server 2012 R2?

I want to trigger this when logged onto another computer running Windows 7 with a domain user account that is in the admin group of the remote server.

Best Answer

One way that could work would be to download and install a Utility called PSExec - http://technet.microsoft.com/en-us/sysinternals/bb896649

Copy contents to a folder on the Compuer you log onto and add the PSExec command to that users login script.

Psexec.exe \\{IIS8server} "appcmd recycle apppool app_pool_name"